projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a642b4d
)
* lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 12 Dec 2019 01:24:44 +0000
(20:24 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Thu, 12 Dec 2019 01:24:44 +0000
(20:24 -0500)
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.
lisp/emacs-lisp/debug.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/debug.el
b/lisp/emacs-lisp/debug.el
index f711971c18131f5fe78e20512c96262ec861020e..3df0ba4a65995ee745db414a43979f830697728b 100644
(file)
--- a/
lisp/emacs-lisp/debug.el
+++ b/
lisp/emacs-lisp/debug.el
@@
-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)))