[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turning off continuable error messages
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Re: turning off continuable error messages
- From: donc@ISI.EDU (Don Cohen)
- Date: Wed, 16 Feb 94 14:20:49 -0800
- Posted-date: Wed, 16 Feb 94 14:20:49 -0800
- Sender: donc@ISI.EDU
Dan Stanger <dxs@evolving.com> says:
(load "loop.lsp")
> ** - Continuable Error
> Redefining the COMMON LISP macro LOOP
Bruno Haible says:
One should be able to handle this using the new condition system
My answer:
I assume the error message came from CERROR.
In that case something like this ought to work:
(handler-bind
((t ; provide a more specific condition if you know it
#'(lambda (c) ; a condition argument
(when (find-restart 'continue)
; cerror is supposed to provide this restart
(invoke-restart 'continue)))))
(load "loop.lsp"))
Bruno responds:
Yes, it does. One can also write "error" instead of "t".