emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] emacs-25 db436e9: Don't call debug on failed cl-assert


From: Stefan Monnier
Subject: Re: [Emacs-diffs] emacs-25 db436e9: Don't call debug on failed cl-assert
Date: Tue, 08 Nov 2016 08:17:23 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)

>> Not if the code is run within an `ignore-errors` clause or some other
>> condition-case catching `error`.
> Hmm, this seems like kind of a kludgy way to circumvent ignore-errors.

It's not perfect, indeed.

> Wouldn't it better to use
> (setq debug-on-error '(cl-assertion-failed) debug-on-signal t) along with:

But I want debug-on-error to be t, so setting debug-on-signal non-nil is
not an option because it's too invasive.

Another option would be to declare that the `cl-assertion-failed` signal
does not have `error` as its parent, so ignore-errors wouldn't catch it.
But really, this should only be the case when debug-on-error is non-nil,
which is rather problematic.


        Stefan




reply via email to

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