help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lisp help: debug-on-error not effective twice?


From: Jesper Harder
Subject: Re: Lisp help: debug-on-error not effective twice?
Date: Sun, 25 Apr 2004 03:12:01 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Lars Brinkhoff <address@hidden> writes:

>       (catch 'error
>         (car))
>       ;;(debug)
>       (print (format "debug-on-error = %s" debug-on-error))
>       (catch 'error
>         (car)))
>
> I get one "foo" from my-debug, then "debug-on-error = t", and then the
> error "Wrong number of arguments: #<subr car>, 0".
>
> Why isn't my-debug called twice?

I don't know.  But interestingly it works correctly in the
_interpreter_ in XEmacs (the byte-compiler doesn't compile the first
catch form correctly).

-- 
Jesper Harder                                <http://purl.org/harder/>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]