Re: (warn) isn't doing what I expect it to
Nathan Baum wrote:
So HANDLER-CASE unwinds the dynamic environments before executing its
forms. Most unexpected. It works if I use HANDLER-BIND.
(handler-bind
((warning #'(lambda (c) (muffle-warning c))))
(warn "foo"))
I think that's a bit ugly, though. Is there a common idiom for what I
want to do, or should I go ahead and roll my own macro?
There is an example of doing just what you want in the section
on the MUFFLE-WARNING restart,
See
http://www.lispworks.com/documentation/HyperSpec/Body/r_muffle.htm
Wade
.