GNU bug report logs -
#65267
30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken
Previous Next
Reported by: Štěpán Němec <stepnem <at> smrk.net>
Date: Sun, 13 Aug 2023 09:35:02 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 65267 <at> debbugs.gnu.org (full text, mbox):
On Sun, 13 Aug 2023 12:19:31 -0400
Stefan Monnier via wrote:
> Yeah, it's wrong, but I'm not sure how to fix it:
> `--debug-init` needs to change the value of `debug-ignored-errors` while
> `init.el` is executed,
FWIW, I'm sure I'm missing something, but the above is far from obvious
to me. Why does --debug-init need to muck with debug-ignored-errors at
all? debug-ignored-errors usually/mostly contains errors unlikely to
occur during startup, and even if they do occur during startup, why
should Emacs not respect debug-ignored-errors and ignore them? (I also
couldn't find this exception (i.e., --debug-init causing
debug-ignored-errors to be ignored) documented anywhere, BTW.)
> but it's not clear how to "revert" to "the value
> it would have if we had not changed it" once we're finished processing
> `init.el`.
>
> Maybe we should introduce a new `inhibit-debug-ignored-errors` which we
> could let-bind while loading `init.el` without having to modify
> `debug-ignored-errors` itself?
If ignoring debug-ignored-errors during startup is really necessary,
that sounds like a possibly cleaner way, indeed (albeit introducing
yet another form to ignore another form ignoring errors...).
On Sun, 13 Aug 2023 19:32:46 +0300
Eli Zaretskii wrote:
> We could document that modifying debug-ignored-errors only works
> reliably if done from after-init-hook. WDYT?
Pushing the breakage downstream... would mean packages like yasnippet
would have to adapt, among other things. Not the end of the world, I
guess, but I still don't understand why the breakage (or "change in
behavior", if you prefer) is necessary or desired.
--
Štěpán
This bug report was last modified 1 year and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.