emacs-devel
[Top][All Lists]
Advanced

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

Re: Any downside to condition-case-unless-debug?


From: Eric Abrahamsen
Subject: Re: Any downside to condition-case-unless-debug?
Date: Thu, 27 May 2021 21:48:05 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Richard Stallman <rms@gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > I feel like a lot of my debugging recently has involved various ways of
>   > working around `condition-case' and its swallowing of useful error
>   > information. Is there any reason not to prefer
>   > `condition-case-unless-debug' in new code?
>
> If we wanted to have that behavior by default, then rather than change
> lots of code gradually, how about making a new global flag
> `debug-on-caught-error' which, when t, would make errors invoke
> the debugger when they are about to be caught?
>
> If `debug-on-caught-error' is `debug-on-error', then the value of
> `debug-on-error' would control the behavior of errors about to be
> caught.

Would this help work around the ERT interference that Glenn referenced?




reply via email to

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