summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/debug.el
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-03-08 20:15:57 +0000
committerLute Kamstra <lute@gnu.org>2005-03-08 20:15:57 +0000
commit9b54d4534e0f8a14a077900d07786d9455b8e134 (patch)
tree8b754e9c9386d28883d0f4380932c0031baffdfe /lisp/emacs-lisp/debug.el
parent41d4eedca4c5c23f4c67837a2aaf62e749f6dfa6 (diff)
downloademacs-9b54d4534e0f8a14a077900d07786d9455b8e134.tar.gz
(debugger-step-through): Make sure that stepping into the debugger's
code is not possible. (debugger-jumping-flag): Docstring update.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
-rw-r--r--lisp/emacs-lisp/debug.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 67836215da3..fc665cb973f 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -94,7 +94,8 @@ This is to optimize `debugger-make-xrefs'.")
(defvar debugger-jumping-flag nil
"Non-nil means that debug-on-entry is disabled.
-This variable is used by `debugger-jump' and `debugger-reenable'.")
+This variable is used by `debugger-jump', `debugger-step-through',
+and `debugger-reenable' to temporarily disable debug-on-entry.")
;; When you change this, you may also need to change the number of
;; frames that the debugger skips.
@@ -384,6 +385,8 @@ That buffer should be current already."
Enter another debugger on next entry to eval, apply or funcall."
(interactive)
(setq debugger-step-after-exit t)
+ (setq debugger-jumping-flag t)
+ (add-hook 'post-command-hook 'debugger-reenable)
(message "Proceeding, will debug on next eval or call.")
(exit-recursive-edit))