]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Dec 2019 01:24:44 +0000 (20:24 -0500)
committerStefan 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

index f711971c18131f5fe78e20512c96262ec861020e..3df0ba4a65995ee745db414a43979f830697728b 100644 (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)))