1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

* lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions

Allow placing debug-on-entry on a function not-yet-defined, which
is convenient when the problem you're investigating happens while
the relevant files are loaded.
This commit is contained in:
Stefan Monnier 2019-12-11 20:24:44 -05:00
parent a642b4d35c
commit 7a498af10a

View File

@ -668,7 +668,7 @@ Redefining FUNCTION also cancels it."
#'(lambda (symbol)
(and (fboundp symbol)
(not (special-form-p symbol))))
t nil nil (symbol-name fn)))
'confirm nil nil (symbol-name fn)))
(list (if (equal val "") fn (intern val)))))
(advice-add function :before #'debug--implement-debug-on-entry
'((depth . -100)))