[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 4302bc9b0f1: Allow --debug-init to debug all errors in init f
From: |
Eli Zaretskii |
Subject: |
Re: master 4302bc9b0f1: Allow --debug-init to debug all errors in init files |
Date: |
Mon, 26 Jun 2023 17:48:12 +0300 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Mon, 26 Jun 2023 09:57:08 -0400
>
> >> Now the changes I make to `debug-ignored-errors` in my `init.el` are
> >> thrown away :-(
> >
> > They are? AFAIU, the code only overrides the value of
> > debug-ignored-errors if Emacs was invoked with --debug-init, and
> > otherwise honors whatever value you set in your init files. Or what
> > am I missing?
>
> There's a let-binding of `debug-ignored-errors` around the `load`, so
> the old value is restored when we finish `load` :-(
Feel free to fix that, but please don't rename the variables.
> BTW, another difference is that you seem to have that offending code in
> 3 places whereas the setting of `debug-on-error` happens only once
That's because you explicitly asked this to be in effect only during
loading the init files. My original suggestion used just one
let-binding.