Previous: , Up: Interpreting Error Messages   [Contents][Index]


4.4.7 Error Message Parameterization

There is some control over the verbosity of error messages. See also undefined-warning-limit, *efficiency-note-limit* and efficiency-note-cost-threshold.

Variable: *enclosing-source-cutoff*

This variable specifies the number of enclosing actual source forms that are printed in full, rather than in the abbreviated processing path format. Increasing the value from its default of 1 allows you to see more of the guts of the macroexpanded source, which is useful when debugging macros.

Variable: *error-print-length*
Variable: *error-print-level*

These variables are the print level and print length used in printing error messages. The default values are 5 and 3. If null, the global values of *print-level* and *print-length* are used.

Macro: extensions:def-source-context name lambda-list {form}*

This macro defines how to extract an abbreviated source context from the named form when it appears in the compiler input. lambda-list is a defmacro style lambda-list used to parse the arguments. The body should return a list of subforms that can be printed on about one line. There are predefined methods for defstruct, defmethod, etc. If no method is defined, then the first two subforms are returned. Note that this facility implicitly determines the string name associated with anonymous functions.