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: Noam Postavsky
Subject: Re: [Emacs-diffs] emacs-25 db436e9: Don't call debug on failed cl-assert
Date: Fri, 27 Jan 2017 20:59:56 -0500

On Fri, Jan 27, 2017 at 8:16 PM, Clément Pit--Claudel
<address@hidden> wrote:
> On 2016-11-08 19:55, Noam Postavsky wrote:
>> [...] Meanwhile, I've pushed the (funcall debugger...) solution to
>> emacs-25 since that is less of a change vs 25.1 than what's there
>> currently.
>
> Hi Noam and Stefan,
>
> Given the current implementation, how does one catch a failed assertion in a 
> condition-case block (when debug-on-error is true)?  If there is no easy way, 
> could we add a defvar to make this behavior of cl-assertion-failed (calling 
> the debugger directly) optional?

I guess let-binding `debugger' to a function which performs the
logging should do the trick?

>
> (The broader context is that I'm trying to log all errors produced by an 
> Emacs server that doesn't have a terminal to write to, and I can't easily 
> catch failed assertions.)
>
> Thanks!
> Clément.
>



reply via email to

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