emacs-devel
[Top][All Lists]
Advanced

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

Re: How can I rethrow an error after recording a backtrace?


From: Clément Pit--Claudel
Subject: Re: How can I rethrow an error after recording a backtrace?
Date: Fri, 5 Aug 2016 05:40:45 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 2016-08-04 22:23, Stefan Monnier wrote:
>>         (setq num-nonmacro-input-events (1+ num-nonmacro-input-events))
> 
> This should be in the server.el's process sentinel, so as to consider
> emacsclient connections as "nonmacro input event".

Hmm. Even with that, I'm not sure. Take the following (untested) program:

(condition-case err1 
    (condition-case err2
        (error "A")
      (error (error "B)))
  (error (message "Oups")))

Suppose I want to capture one backtrace for each of the signals in this 
program.  Assuming I register a debugger that re-throws all errors that it 
receives, won't the second error slip through, due to the nonmacro input event 
counter not having been increased?

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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