From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64163@debbugs.gnu.org, Sebastian Miele <iota@whxvd.name>
Subject: bug#64163: 29.0.92; Syntactic errors in early init when --debug-init is on
Date: Tue, 20 Jun 2023 10:24:31 -0400 [thread overview]
Message-ID: <jwvr0q6tdyw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83y1ke5kn7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Jun 2023 16:27:24 +0300")
> First, the --init-directory=$DIR part is not relevant to the issue;
> the same happens if you place such init files in your "normal" home
> directory.
[ IIUC he used it so we can reproduce his recipe without having to
mess with our config. Thanks Sebastien for that effort :-) ]
> More to the point, that error in early-init.el does not trigger
> a backtrace because 'end-of-file' error is in the list that is the
> value of debug-ignored-errors. So this problem is specific to that
> particular kind of error in early-init.el. If you trigger some other
> error, which is not in the list of ignored ones, you will see
> a backtrace.
>
> IOW, this is the expected behavior.
>
> I wonder whether the patch below could be the solution to this.
I think `debug-ignored-errors` should keep its default value when
`--debug-init` is not used.
IOW `--debug-init` should be the one that sets `debug-ignored-errors` to
nil (only while loading the init files, tho).
> Stefan, WDYT? Should we perhaps condition this binding by more
> conditions, like only do this in interactive invocations or something?
That would also be worth a try, yes.
Stefan
next prev parent reply other threads:[~2023-06-20 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-19 10:27 bug#64163: 29.0.92; Syntactic errors in early init when --debug-init is on Sebastian Miele
2023-06-20 13:27 ` Eli Zaretskii
2023-06-20 14:24 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-06-20 16:05 ` Eli Zaretskii
2023-06-20 17:07 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-21 13:29 ` Eli Zaretskii
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=jwvr0q6tdyw.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=64163@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=iota@whxvd.name \
--cc=monnier@iro.umontreal.ca \
/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).