]> git.eshelyaron.com Git - emacs.git/commit
elisp-mode.el: Use `handler-bind` instead of `debug-on-error`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 21:46:01 +0000 (16:46 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:50:04 +0000 (18:50 +0100)
commita32d6ba70ac8dab57305d9de5a148c27b3ac6d70
tree5cd3b5f42a97ec6ad3d23feaa51d0578cb9c1c81
parent080a39cd5e18b24f4690d07cbdcad2bb3c12afc0
elisp-mode.el: Use `handler-bind` instead of `debug-on-error`

* lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding):
Don't get fooled by a global binding of `lexical-binding` to t.
(elisp--eval-last-sexp-fake-value): Delete var.
(elisp--eval-defun): Don't let-bind `debug-on-error` since it's
already arranged by the only caller.
(eval-last-sexp, eval-defun): Use `handler-bind` instead of
`debug-on-error`.

(cherry picked from commit 84f72f19e514db8f8f6e469340fb5fa0719d40b6)
lisp/progmodes/elisp-mode.el