emacs-devel
[Top][All Lists]
Advanced

[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 14:07:06 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Sun, 25 Jun 2023 19:26:27 -0400
> 
> > -           (load (if (equal (file-name-extension init-file-name)
> > -                            "el")
> > -                     (file-name-sans-extension init-file-name)
> > -                   init-file-name)
> > -                 'noerror 'nomessage))
> > +                ;; If they specified --debug-init, enter the debugger
> > +                ;; on any error whatsoever.
> > +                (let ((debug-ignored-errors
> > +                       (if (and init-file-debug (not noninteractive))
> > +                           nil
> > +                         debug-ignored-errors)))
> > +             (load (if (equal (file-name-extension init-file-name)
> > +                              "el")
> > +                       (file-name-sans-extension init-file-name)
> > +                     init-file-name)
> > +                   'noerror 'nomessage)))
> 
> 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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]