summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-03-30 07:05:14 +0000
committerRichard M. Stallman <rms@gnu.org>1997-03-30 07:05:14 +0000
commit614710af5b71b780d92ad9edf5b25de2b1bee5ad (patch)
treebb9b567b135ee97a77aecb0fa9c3511a5445ffb8 /lisp/emacs-lisp
parente190af9a8eb0bf0eaa3e37d8c45eb6c586759731 (diff)
downloademacs-614710af5b71b780d92ad9edf5b25de2b1bee5ad.tar.gz
(debug): Use save-excursion inside the binding of buffer-read-only.
Diffstat (limited to 'lisp/emacs-lisp')
-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."
(standard-output nil)
(buffer-read-only t))
(message "")
- (recursive-edit))))
+ ;; Make sure we unbind buffer-read-only in the right buffer.
+ (save-excursion
+ (recursive-edit)))))
;; Kill or at least neuter the backtrace buffer, so that users
;; don't try to execute debugger commands in an invalid context.
(if (get-buffer-window debugger-buffer 'visible)