emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7a498af: * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undef


From: Stefan Monnier
Subject: master 7a498af: * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functions
Date: Wed, 11 Dec 2019 20:24:51 -0500 (EST)

branch: master
commit 7a498af10a9b19ab3d88663acd4bb5724eeef6c8
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * 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.
---
 lisp/emacs-lisp/debug.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index f711971..3df0ba4 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]