DEBUGGING AND ERROR HANDLING FUNCTIONS
ADD A FUNCTION TO THE TRACE LIST
(trace [<sym>...])
fsubr
- <sym> the function(s) to add (quoted)
- returns the trace list
REMOVE A FUNCTION FROM THE TRACE LIST
(untrace [<sym>...])
fsubr. If no functions given, all functions are removed from the trace list.
- <sym> the function(s) to remove (quoted)
- returns the trace list
SIGNAL A NON-CORRECTABLE ERROR
(error <emsg> {<arg>})
Note that the definition of this function has changed from 2.1e and earlier so to match Common Lisp.
- <emsg> the error message string, which is processed by FORMAT
- <arg> optional argument{s} for FORMAT
- returns never returns
SIGNAL A CORRECTABLE ERROR
(cerror <cmsg> <emsg> {<arg>})
Note that the definition of this function has changed from 2.1e and earlier so to match Common Lisp.
- <cmsg> the continue message string, which is processed by FORMAT
- <emsg> the error message string, which is processed by FORMAT
- <arg> optional argument(s) for both FORMATs (arguments are useable twice)
- returns NIL when continued from the break loop
ENTER A BREAK LOOP
(break <bmsg> {<arg>})
Note that the definition of this function has changed from 2.1e and earlier so to match Common Lisp.
- <bmsg> the break message string, which is processed by FORMAT
- <arg> optional argument(s) for FORMAT
- returns NIL when continued from the break loop
CLEAN-UP AFTER AN ERROR
(clean-up)
CLEAN-UP AFTER AN ERROR AND RETURN TO THE TOP LEVEL
(top-level)
Runs the function in variable *top-level-loop* (ususally TOP-LEVEL-LOOP)
CONTINUE FROM A CORRECTABLE ERROR
(continue)
TRAP ERRORS
(errset <expr> [<pflag>])
fsubr
- <expr> the expression to execute
- <pflag> flag to control printing of the error message (default t)
- returns the value of the last expression consed with NIL or NIL on error
PRINT N LEVELS OF TRACE BACK INFORMATION
(baktrace [<n>])
- <n> the number of levels (defaults to all levels)
- returns NIL
EVALUATE WITH HOOKS
(evalhook <expr> <ehook> <ahook> [<env>])
- <expr> the expression to evaluate. <ehook> is not used at the top level.
- <ehook> the value for *evalhook*
- <ahook> the value for *applyhook*
- <env> the environment (default is NIL). The format is a dotted pair of value (car) and function (cdr) binding lists. Each binding list is a list of level binding a-lists, with the innermost a-list first. The level binding a-list associates the bound symbol with its value.
- returns the result of evaluating the expression
APPLY WITH HOOKS
(applyhook <fun> <arglist> <ehook> <ahook>)
- <fun> The function closure. <ahook> is not used for this function application.
- <arglist> The list of arguments.
- <ehook> the value for *evalhook*
- <ahook> the value for *applyhook*
- returns the result of applying <fun> to <arglist>
ENABLE DEBUG BREAKS
(debug)
DISABLE DEBUG BREAKS
(nodebug)
Defined in init.lsp
XLISP-PLUS - Version 2.1g - Tom Almy
tom.almy@tek.com - 18 JUL 94
Generated with WebMaker