]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't remember old debugger window (Bug#17882)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 13 Oct 2017 02:59:53 +0000 (22:59 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 15 Oct 2017 17:58:45 +0000 (13:58 -0400)
* lisp/emacs-lisp/debug.el (debug): Unset debugger-previous-window
when `debugger-will-be-back' is nil.

lisp/emacs-lisp/debug.el

index 0247179a843f9e8fc618f16df8befdba8bfca16f..6c754615b002470ea9d3a775e18daeb12ccf3395 100644 (file)
@@ -253,7 +253,9 @@ first will be printed into the backtrace buffer."
                ;; Unshow debugger-buffer.
                (quit-restore-window debugger-window debugger-bury-or-kill)
                ;; Restore current buffer (Bug#12502).
-               (set-buffer debugger-old-buffer))))
+               (set-buffer debugger-old-buffer)))
+            ;; Forget debugger window, it won't be back (Bug#17882).
+            (setq debugger-previous-window nil))
           ;; 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.