Previous: , Up: Manipulating the Editor Process   [Contents][Index]


9.9.3 Error Handling

When an error happens inside of Hemlock, Hemlock will trap the error and display the error message in the echo area, possibly along with the "Internal error:" prefix. If you want to debug the error, type ?. This causes the prompt "Debug:" to appear in the echo area. The following commands are recognized:

d

Enter a break-loop so that you can use the Lisp debugger. Proceeding with "go" will reenter Hemlock and give the "Debug:" prompt again.

e

Display the original error message in a pop-up window.

b

Show a stack backtrace in a pop-up window.

q, Escape

Quit from this error to the nearest command loop.

r

Display a list of the restart cases and prompt for the number of a restart-case with which to continue. Restarting may result in prompting in the window in which Lisp started.

Only errors within the editor process are handled in this way. Errors during eval server operations are handled using normal terminal I/O on a typescript in the eval server’s slave buffer or background buffer (see page operations). Errors due to interaction in a slave buffer will cause the debugger to be entered in the slave buffer.


Previous: Eval Mode, Up: Manipulating the Editor Process   [Contents][Index]