]> 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)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 4 Jan 2024 21:35:53 +0000 (16:35 -0500)
commit80b081a0ac72a5a9e459af6c96f5b0226a79894f
tree3bfcb6ba4656689e28b5010aba41748e7489f719
parent142c90a6f088a6eea66d6b08d05a5ff70c018aa6
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`.
lisp/startup.el