+2012-10-19 Martin Rudalics <rudalics@gmx.at>
+
+ * emacs-lisp/debug.el (debug): Record height of debugger window
+ also when debugger will be back (Bug#8789).
+
2012-10-18 Chong Yidong <cyd@gnu.org>
* progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action):
;; Make sure we unbind buffer-read-only in the right buffer.
(save-excursion
(recursive-edit))))
+ (when (and (window-live-p debugger-window)
+ (eq (window-buffer debugger-window) debugger-buffer))
+ ;; Record height of debugger window.
+ (setq debugger-previous-window-height
+ (window-total-size debugger-window)))
(if debugger-will-be-back
;; Restore previous window configuration (Bug#12623).
(set-window-configuration window-configuration)
(when (and (window-live-p debugger-window)
(eq (window-buffer debugger-window) debugger-buffer))
(progn
- ;; Record height of debugger window.
- (setq debugger-previous-window-height
- (window-total-size debugger-window))
;; Unshow debugger-buffer.
(quit-restore-window debugger-window debugger-bury-or-kill)
;; Restore current buffer (Bug#12502).