all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Štěpán Němec" <stepnem@smrk.net>
Cc: 65267@debbugs.gnu.org, monnier@iro.umontreal.ca
Subject: bug#65267: 30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken
Date: Sun, 13 Aug 2023 13:12:56 +0300	[thread overview]
Message-ID: <83bkfbckt3.fsf@gnu.org> (raw)
In-Reply-To: <20230813120341+0200.42465-stepnem@smrk.net> (message from Štěpán Němec on Sun, 13 Aug 2023 12:03:41 +0200)

> From: Štěpán Němec <stepnem@smrk.net>
> Cc: 65267@debbugs.gnu.org, monnier@iro.umontreal.ca
> Date: Sun, 13 Aug 2023 12:03:41 +0200
> 
> On Sun, 13 Aug 2023 12:49:42 +0300
> Eli Zaretskii wrote:
> 
> > when the user says --debug-init, they need to be shown all the errors
> > raised during startup; hiding some of the errors was a misfeature in
> > previous versions of Emacs, now fixed.
> 
> That would seem OK to me.  The problem is that, as it is now, this
> breaks normal Emacs usage of anyone who starts with --debug-init and
> happens to modify `debug-ignored-errors' as part of their
> initialization.

You are not supposed to suppress errors during startup when you use
the --debug-init switch.  You are supposed to resolve the errors one
by one, until no errors are left.  (Resolving errors could include
catching them and ignoring them, e.g., with the likes of
ignore-errors.)  That's what --debug-init is for, so leaving some
errors suppressed in that case makes no sense.  Moreover, most users
don't even know that debug-ignored-errors exists and has a non-nil
value by default, so the effect is to hide some errors during startup
from those users -- and that is the anti-thesis of --debug-init.

> Note that it might not even be user-intentional/explicit modification,
> e.g., I noticed the problem because I load yasnippet from my init file,
> and yasnippet adds a custom regexp to debug-ignored-errors; so now I end
> up with bogus debug-ignored-errors value, which is further aggravated by
> the fact that I normally run with debug-on-errors set, so, for example,
> I now end up in the debugger whenever I press C-n at the end of buffer
> (until I manually restore debug-ignored-errors to a sane value).

The above works perfectly okay as long as --debug-init is not used,
right?  (If it doesn't, then this is not a problem with a recent
change that is supposed to affect only --debug-init.)





  reply	other threads:[~2023-08-13 10:12 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-13  7:54 bug#65267: 30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken Štěpán Němec
2023-08-13  9:49 ` Eli Zaretskii
2023-08-13 10:03   ` Štěpán Němec
2023-08-13 10:12     ` Eli Zaretskii [this message]
2023-08-13 10:24       ` Štěpán Němec
2023-08-13 12:38         ` Eli Zaretskii
2023-08-13 16:19 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-13 16:32   ` Eli Zaretskii
2023-08-13 17:08   ` Štěpán Němec
2023-08-13 17:52     ` Eli Zaretskii
     [not found]       ` <20230813203525+0200.956511-stepnem@smrk.net>
2023-08-13 19:05         ` Eli Zaretskii
2023-08-13 19:47     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]       ` <20230813223458+0200.843367-stepnem@smrk.net>
2023-08-14  2:26         ` Eli Zaretskii
2023-08-14  6:48           ` Štěpán Němec
2023-08-17  9:31       ` Eli Zaretskii
2023-08-17 12:55         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-17 13:28           ` Eli Zaretskii
2023-08-17 14:16             ` Štěpán Němec
2023-08-17 14:31               ` Eli Zaretskii
2023-08-17 14:36                 ` Eli Zaretskii
2023-08-17 15:52                 ` bug#65267: 30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken, " Štěpán Němec
2023-08-17 16:05                   ` Eli Zaretskii
2023-08-17 16:29                     ` Štěpán Němec
2023-08-17 17:58                       ` Eli Zaretskii
2023-08-17 18:15                         ` Štěpán Němec
2023-08-17 18:36                           ` Eli Zaretskii
2023-08-17 17:15                   ` Gregory Heytings
2023-08-17 17:27                     ` Štěpán Němec
2023-08-17 18:07                       ` Gregory Heytings
2023-08-17 18:20                         ` Štěpán Němec
2023-08-17 18:31                           ` Gregory Heytings
2023-08-17 18:36                             ` Štěpán Němec

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=83bkfbckt3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65267@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stepnem@smrk.net \
    /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.