Subject: Re: bug#76949: 30.1; --debug-init and condition-case-unless-debug

From: Eli Zaretskii <[email-masked]>
Date: Wed, 12 Mar 2025 14:55:43 +0200

> Cc: [email-masked], [email-masked]
> 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" <[email-masked]>
> 
> > 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.