aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-18 18:13:23 +0000
committerRichard M. Stallman1995-03-18 18:13:23 +0000
commit80ddb8edf43fc059efabc69fa8c26ce365ffebeb (patch)
treef3d392bd8a2e8ecb880eb287cfed17e7541003a7
parent925a67ca07b1c9986d432be8c3105dd04c65de22 (diff)
downloademacs-80ddb8edf43fc059efabc69fa8c26ce365ffebeb.tar.gz
emacs-80ddb8edf43fc059efabc69fa8c26ce365ffebeb.zip
(debugger-outer-load-read-function): New variable.
(debug): Bind load-read-function to nil; save old value in debugger-outer-load-read-function and restore at end. (debugger-eval-expression): Handle load-read-function like other magic variables. (debugger-outer-overriding-local-map): New variable. (debug): Bind overriding-local-map to nil; save old value in debugger-outer-overriding-local-map and restore at end. (debugger-eval-expression): Handle overriding-local-map like other magic variables.
-rw-r--r--lisp/emacs-lisp/debug.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 2adb499246c..ab809ee2550 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -40,6 +40,8 @@
40 "This is the buffer that was current when the debugger was entered.") 40 "This is the buffer that was current when the debugger was entered.")
41 41
42(defvar debugger-outer-match-data) 42(defvar debugger-outer-match-data)
43(defvar debugger-outer-load-read-function)
44(defvar debugger-outer-overriding-local-map)
43(defvar debugger-outer-track-mouse) 45(defvar debugger-outer-track-mouse)
44(defvar debugger-outer-last-command) 46(defvar debugger-outer-last-command)
45(defvar debugger-outer-this-command) 47(defvar debugger-outer-this-command)
@@ -77,6 +79,8 @@ first will be printed into the backtrace buffer."
77 ;; Save the outer values of these vars for the `e' command 79 ;; Save the outer values of these vars for the `e' command
78 ;; before we replace the values. 80 ;; before we replace the values.
79 (debugger-outer-match-data (match-data)) 81 (debugger-outer-match-data (match-data))
82 (debugger-outer-load-read-function load-read-function)
83 (debugger-outer-overriding-local-map overriding-local-map)
80 (debugger-outer-track-mouse track-mouse) 84 (debugger-outer-track-mouse track-mouse)
81 (debugger-outer-last-command last-command) 85 (debugger-outer-last-command last-command)
82 (debugger-outer-this-command this-command) 86 (debugger-outer-this-command this-command)
@@ -94,6 +98,8 @@ first will be printed into the backtrace buffer."
94 (unread-command-char -1) unread-command-events 98 (unread-command-char -1) unread-command-events
95 last-input-event last-command-event last-nonmenu-event 99 last-input-event last-command-event last-nonmenu-event
96 last-event-frame 100 last-event-frame
101 overriding-local-map
102 load-read-function
97 (standard-input t) (standard-output t) 103 (standard-input t) (standard-output t)
98 (cursor-in-echo-area nil)) 104 (cursor-in-echo-area nil))
99 (unwind-protect 105 (unwind-protect
@@ -169,6 +175,8 @@ first will be printed into the backtrace buffer."
169 (store-match-data debugger-outer-match-data))) 175 (store-match-data debugger-outer-match-data)))
170 ;; Put into effect the modified values of these variables 176 ;; Put into effect the modified values of these variables
171 ;; in case the user set them with the `e' command. 177 ;; in case the user set them with the `e' command.
178 (setq load-read-function debugger-outer-load-read-function)
179 (setq overriding-local-map debugger-outer-overriding-local-map)
172 (setq track-mouse debugger-outer-track-mouse) 180 (setq track-mouse debugger-outer-track-mouse)
173 (setq last-command debugger-outer-last-command) 181 (setq last-command debugger-outer-last-command)
174 (setq this-command debugger-outer-this-command) 182 (setq this-command debugger-outer-this-command)
@@ -314,10 +322,14 @@ Applies to the frame whose line point is on in the backtrace."
314 (last-event-frame debugger-outer-last-event-frame) 322 (last-event-frame debugger-outer-last-event-frame)
315 (standard-input debugger-outer-standard-input) 323 (standard-input debugger-outer-standard-input)
316 (standard-output debugger-outer-standard-output) 324 (standard-output debugger-outer-standard-output)
317 (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) 325 (cursor-in-echo-area debugger-outer-cursor-in-echo-area)
326 (overriding-local-map debugger-outer-overriding-local-map)
327 (load-read-function debugger-outer-load-read-function))
318 (store-match-data debugger-outer-match-data) 328 (store-match-data debugger-outer-match-data)
319 (prog1 (eval-expression exp) 329 (prog1 (eval-expression exp)
320 (setq debugger-outer-match-data (match-data)) 330 (setq debugger-outer-match-data (match-data))
331 (setq debugger-outer-load-read-function load-read-function)
332 (setq debugger-outer-overriding-local-map overriding-local-map)
321 (setq debugger-outer-track-mouse track-mouse) 333 (setq debugger-outer-track-mouse track-mouse)
322 (setq debugger-outer-last-command last-command) 334 (setq debugger-outer-last-command last-command)
323 (setq debugger-outer-this-command this-command) 335 (setq debugger-outer-this-command this-command)