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: Stefan Monnier
Subject: Re: master 4302bc9b0f1: Allow --debug-init to debug all errors in init files
Date: Sun, 25 Jun 2023 19:26:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Eli,

>     Allow --debug-init to debug all errors in init files
>
>     * lisp/startup.el (startup--load-user-init-file): Ignore the value
>     of 'debug-ignored-errors' when loading init files if we were
>     invoked interactively with --debug-init.  (Bug#64163)

I understand you didn't like my patch because of the cosmetic renaming
it included, but you threw away some of the baby with the bathwater:

> -             (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 :-(


        Stefan




reply via email to

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