[Next] [Previous] [Up] [Top] [Contents] [Index]

Documentation commands

Source code

When definitions are compiled and the value of the global variable *record-source-file* is true, the source file from which the definition was compiled is remembered. You can later navigate from the symbol that was defined (i.e. the class name, function name, variable name, etc.) to the source code.

The default value of *record-source-file* is true.

There are three ways to retrieve the source code of a definition:

  • By using the function edit-definition, which takes a symbol as its first argument.
  • By using the Fred command Option-Period, when the cursor is in a symbol or when a symbol is selected. (This command is often called "meta-point" or "meta-dot.")
  • Through the inspector, the stack backtrace, and other graphical tools.

  • In all cases, if the source code information of the definition was recorded, the source code file will be opened and scrolled to the definition.

    In some cases, there will be multiple definitions for a single symbol. For example, there may be both a class and a function defined with the same name, or there may be many method definitions on the same generic function. In these cases, you are presented with a list of definitions and prompted to choose one.


    Gettmg Started with MCL - 19 OCT 1996
    [Next] [Previous] [Up] [Top] [Contents] [Index]

    Generated with Harlequin WebMaker