From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: debug-ignored-errors usage
Date: Thu, 02 May 2019 21:33:50 -0700 [thread overview]
Message-ID: <87sgtwf975.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 86a7g4w4t0.fsf@zoho.eu
Emanuel Berg <moasenwood@zoho.eu> writes:
> Eric Abrahamsen wrote:
>
>> The docstring explains it: these are errors
>> that _won't_ trigger the debugger even if
>> you've toggled debug-on-error t.
>
> This
>
> (/ 1 0)
>
> triggers the error (arith-error) for me but the
> second time I do it it just says "Arithmetic
> error" in the minibuffer. And the third time
> etc ...
>
> So the debugger is only triggered once per
> error type? Is this why I never see the
> debugger half-window despite not doing anything
> to not see it? I just have Emacs on and before
> long there aren't any errors I haven't
> seen already?
>
> Also, putting beginning-of-buffer in
> `debug-ignored-errors' still echoes
> "Beginning of buffer" in the minibuffer when
> that happens.
>
> So what does it really achieve: you don't get
> the debugger window _the first time either_,
> but you still get the message every time
> like always?
>
> Because perhaps that message is not part of the
> actual error? Which, if so, is wierd, because
> from the name of the error, and spelling of the
> message, it sure sounds like they are a pretty
> close match!
It means that if you've run `toggle-debug-on-error', and then one of
those errors occurs, you _won't_ get the debug window popping up, which
normally all errors would do. Some errors are basic enough or common
enough that Emacs assuming you don't need to see a debug window for
them. For instance, beginning-of-buffer. I can toggle debug on error to
t, put point at the beginning of a buffer, and hit backward-char. That's
actually an error, though all you see is the message in the minibuffer.
If the beginning-of-buffer symbol were not in `debug-ignored-errors', it
would pop up a *Debug* window showing me the error backtrace. But
there's really no point in seeing a backtrace for beginning-of-buffer.
Emanuel Berg <moasenwood@zoho.eu> writes:
> Eric Abrahamsen wrote:
>
>> Your value looks very much like ispell or
>> some other spelling package has added it's
>> own regexp in there to skip debugging when it
>> couldn't find a word to check.
>
> But why does ispell produce an error at all, if
> it automatically on installation tells Emacs to
> ignore it?
It just tells Emacs that, even if `debug-on-error' is true, the user
doesn't really need to see the debug window if there's no word to check.
There's no "deeper information" to be gleaned from a backtrace.
Eric
next prev parent reply other threads:[~2019-05-03 4:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-01 1:00 debug-ignored-errors usage Budi
2019-05-01 2:13 ` Mauro Aranda
2019-05-03 2:41 ` Emanuel Berg
2019-05-03 3:14 ` Eric Abrahamsen
2019-05-03 4:16 ` Emanuel Berg
2019-05-03 4:33 ` Eric Abrahamsen [this message]
2019-05-03 4:59 ` Emanuel Berg
2019-05-03 5:03 ` Eric Abrahamsen
2019-05-03 20:18 ` Stefan Monnier
2019-05-03 23:06 ` Emanuel Berg
2019-05-03 4:18 ` Emanuel Berg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgtwf975.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.