]> git.eshelyaron.com Git - emacs.git/commit
startup.el: Use `handler-bind` to implement `--debug-init`
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 20 Dec 2023 00:46:47 +0000 (19:46 -0500)
committerEshel Yaron <me@eshelyaron.com>
Fri, 5 Jan 2024 08:19:30 +0000 (09:19 +0100)
commit131d05b989f82445f56dfeaebd1776202572103b
treec4772abdba4e83244d9b8845fe2fa187c20eb4dd
parent621851c11aa76c77f17afafc1bdb757e4b17bbbe
startup.el: Use `handler-bind` to implement `--debug-init`

This provides a more reliable fix for bug#65267 since we don't
touch `debug-on-error` nor `debug-ignore-errors` any more.

* lisp/startup.el (startup--debug): New function.
(startup--load-user-init-file): Use it and `handler-bind` instead of
let-binding `debug-on-error`.

(cherry picked from commit 80b081a0ac72a5a9e459af6c96f5b0226a79894f)
lisp/startup.el