From: Stefan Monnier Date: Thu, 12 Dec 2019 01:24:44 +0000 (-0500) Subject: * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions X-Git-Tag: emacs-27.0.90~373 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a498af10a9b19ab3d88663acd4bb5724eeef6c8;p=emacs.git * 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. --- diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index f711971c181..3df0ba4a659 100644 --- 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)))