diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 46336af6e71..f9d9ad4b03d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-19 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * emacs-lisp/debug.el (debug): Record height of debugger window | ||
| 4 | also when debugger will be back (Bug#8789). | ||
| 5 | |||
| 1 | 2012-10-18 Chong Yidong <cyd@gnu.org> | 6 | 2012-10-18 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): | 8 | * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index c30ccf3315e..c04e68c0cfa 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -267,15 +267,17 @@ first will be printed into the backtrace buffer." | |||
| 267 | ;; Make sure we unbind buffer-read-only in the right buffer. | 267 | ;; Make sure we unbind buffer-read-only in the right buffer. |
| 268 | (save-excursion | 268 | (save-excursion |
| 269 | (recursive-edit)))) | 269 | (recursive-edit)))) |
| 270 | (when (and (window-live-p debugger-window) | ||
| 271 | (eq (window-buffer debugger-window) debugger-buffer)) | ||
| 272 | ;; Record height of debugger window. | ||
| 273 | (setq debugger-previous-window-height | ||
| 274 | (window-total-size debugger-window))) | ||
| 270 | (if debugger-will-be-back | 275 | (if debugger-will-be-back |
| 271 | ;; Restore previous window configuration (Bug#12623). | 276 | ;; Restore previous window configuration (Bug#12623). |
| 272 | (set-window-configuration window-configuration) | 277 | (set-window-configuration window-configuration) |
| 273 | (when (and (window-live-p debugger-window) | 278 | (when (and (window-live-p debugger-window) |
| 274 | (eq (window-buffer debugger-window) debugger-buffer)) | 279 | (eq (window-buffer debugger-window) debugger-buffer)) |
| 275 | (progn | 280 | (progn |
| 276 | ;; Record height of debugger window. | ||
| 277 | (setq debugger-previous-window-height | ||
| 278 | (window-total-size debugger-window)) | ||
| 279 | ;; Unshow debugger-buffer. | 281 | ;; Unshow debugger-buffer. |
| 280 | (quit-restore-window debugger-window debugger-bury-or-kill) | 282 | (quit-restore-window debugger-window debugger-bury-or-kill) |
| 281 | ;; Restore current buffer (Bug#12502). | 283 | ;; Restore current buffer (Bug#12502). |