aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-03-30 07:05:14 +0000
committerRichard M. Stallman1997-03-30 07:05:14 +0000
commit614710af5b71b780d92ad9edf5b25de2b1bee5ad (patch)
treebb9b567b135ee97a77aecb0fa9c3511a5445ffb8
parente190af9a8eb0bf0eaa3e37d8c45eb6c586759731 (diff)
downloademacs-614710af5b71b780d92ad9edf5b25de2b1bee5ad.tar.gz
emacs-614710af5b71b780d92ad9edf5b25de2b1bee5ad.zip
(debug): Use save-excursion inside the binding of buffer-read-only.
-rw-r--r--lisp/emacs-lisp/debug.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 202821c87ed..763a1f3193c 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -161,7 +161,9 @@ first will be printed into the backtrace buffer."
161 (standard-output nil) 161 (standard-output nil)
162 (buffer-read-only t)) 162 (buffer-read-only t))
163 (message "") 163 (message "")
164 (recursive-edit)))) 164 ;; Make sure we unbind buffer-read-only in the right buffer.
165 (save-excursion
166 (recursive-edit)))))
165 ;; Kill or at least neuter the backtrace buffer, so that users 167 ;; Kill or at least neuter the backtrace buffer, so that users
166 ;; don't try to execute debugger commands in an invalid context. 168 ;; don't try to execute debugger commands in an invalid context.
167 (if (get-buffer-window debugger-buffer 'visible) 169 (if (get-buffer-window debugger-buffer 'visible)