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: Richard Stallman
Subject: Re: Any downside to condition-case-unless-debug?
Date: Fri, 28 May 2021 00:44:14 -0400

[[[ 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.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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