Commit 2e566ecb authored by Martin Rudalics's avatar Martin Rudalics

In debug restore current buffer when quitting debugger window (Bug#12502).

* emacs-lisp/debug.el (debug): When quitting the debugger window
restore current buffer (Bug#12502).
parent a3c5c0c5
2012-10-03 Martin Rudalics <rudalics@gmx.at>
* emacs-lisp/debug.el (debug): When quitting the debugger window
restore current buffer (Bug#12502).
2012-10-02 Chong Yidong <cyd@gnu.org>
* progmodes/hideif.el (hif-lookup, hif-defined): Handle
......
......@@ -273,7 +273,9 @@ first will be printed into the backtrace buffer."
(setq debugger-previous-window-height
(window-total-size debugger-window))
;; Unshow debugger-buffer.
(quit-restore-window debugger-window debugger-bury-or-kill))
(quit-restore-window debugger-window debugger-bury-or-kill)
;; Restore current buffer (Bug#12502).
(set-buffer debugger-old-buffer))
;; Restore previous state of debugger-buffer in case we were
;; in a recursive invocation of the debugger, otherwise just
;; erase the buffer and put it into fundamental mode.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment