From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: 11218@debbugs.gnu.org, Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: bug#11218: with-demoted-errors use of condition-case-unless-debug; ert
Date: Wed, 11 Apr 2012 13:57:24 -0400 [thread overview]
Message-ID: <jwvsjga888i.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ohiph6kzbo.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 11 Apr 2012 12:28:27 -0400")
>>>> If I want to debug a condition-case, I'll set debug-on-signal non-nil.
>> That's not an ert bug. :)
> To expand: why does with-demoted-errors use a different form of
> condition-case, and hence treat debugging differently, to the
> pre-existing ignore-errors? The former doesn't let you have control; the
> latter does.
debug-on-signal is inconvenient because it triggers in many cases where
it shouldn't (because the error is actually normal and handled
properly).
`with-demoted-errors' doesn't actually *handle* the error, it just
demotes it so as not to annoy the user. So I find it makes sense to get
into the debugger when an error is demoted and the user has asked to
enter debugger on error.
Stefan
next prev parent reply other threads:[~2012-04-11 17:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 3:37 bug#11218: with-demoted-errors use of condition-case-unless-debug; ert Glenn Morris
2012-04-11 12:03 ` Lars Magne Ingebrigtsen
2012-04-11 16:16 ` Glenn Morris
2012-04-11 16:28 ` Glenn Morris
2012-04-11 17:57 ` Stefan Monnier [this message]
2012-04-11 13:02 ` Stefan Monnier
2012-04-13 0:15 ` Glenn Morris
2012-04-13 13:44 ` Stefan Monnier
2012-04-17 21:30 ` Christian Ohler
2012-04-19 7:46 ` Stefan Monnier
2012-04-20 3:09 ` Christian Ohler
2012-04-20 12:13 ` Stefan Monnier
2012-04-20 21:02 ` Christian Ohler
2012-04-21 2:34 ` Stefan Monnier
2012-04-23 13:26 ` Lennart Borgman
2012-04-24 2:04 ` Stefan Monnier
2012-05-06 18:45 ` Christian Ohler
2012-05-07 1:12 ` Stefan Monnier
2012-05-21 3:03 ` Christian Ohler
2018-08-15 1:10 ` Noam Postavsky
2020-11-24 17:34 ` Philipp Stephani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvsjga888i.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=11218@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).