GNU bug report logs - #76949
30.1; --debug-init and condition-case-unless-debug

Previous Next

Package: emacs;

Reported by: "Nussbaum Ferdinand" <ferdinand.nussbaum <at> inf.ethz.ch>

Date: Tue, 11 Mar 2025 17:20:03 UTC

Severity: normal

Found in version 30.1

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: ferdinand.nussbaum <at> inf.ethz.ch, me <at> bcc32.com, 76949 <at> debbugs.gnu.org
Subject: bug#76949: 30.1; --debug-init and condition-case-unless-debug
Date: Wed, 12 Mar 2025 14:55:43 +0200
> Cc: 76949 <at> debbugs.gnu.org, me <at> bcc32.com
> Date: Tue, 11 Mar 2025 16:41:42 -0400
> From:  Stefan Monnier via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> > Errors inside condition-case-unless-debug do not trigger the debugger when the
> > --debug-init startup option is set (and debug-on-error is not additionally and
> > explicitly set to a non-nil value).
> 
> Indeed this is the direct consequence of:
> 
> > AFAICT this is no longer correct since the implementation uses handler-bind instead.
> 
> It seems cumbersome to fix this without re-introducing the problem that
> `handler-bind` addresses, so I'm in favor of fixing the doc rather than
> the code.

Feel free to fix the documentation.  But it would be nice if we could
tell users what to use instead of condition-case-unless-debug in these
cases.




This bug report was last modified 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.