Search code examples
lispcommon-lispclisp

lisp, how to eliminate restarts


I am quite new to lisp. When I was playing in clisp environment I made mistakes often but was then immediately punished by a long list like

ABORT          :R11     Abort debug loop
ABORT          :R12     Abort debug loop
ABORT          :R13     Abort debug loop
ABORT          :R14     Abort debug loop
ABORT          :R15     Abort debug loop

which just ruins my screen and I cannot see any previous commands. Does anyone know how to eliminate this prompt?


Solution

  • In addition to all the other excellent answers, here is a way to avoid landing in the debugger (a la scheme):

    (set-global-handler 'error 'sys::abortonerror)
    

    This is NOT recommended, learn the debugger instead!

    E.g., use :q to escape from all the debuggers to the top level REPL.