From: martin rudalics Date: Mon, 6 Sep 2021 10:48:07 +0000 (+0200) Subject: Restore the debugging window size more reliably X-Git-Tag: emacs-28.0.90~1145 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9680994d3a1a9d08a12927be4aacb8b631f6b046;p=emacs.git Restore the debugging window size more reliably * lisp/emacs-lisp/debug.el (debug): Restore the debugging window size more reliably (bug#12921). --- diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 2007f79634d..f76ae3fe69f 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -266,16 +266,15 @@ the debugger will not be entered." (window-frame debugger-previous-window))) `((previous-window . ,debugger-previous-window)))))) (setq debugger-window (selected-window)) - (if (eq debugger-previous-window debugger-window) - (when debugger-jumping-flag - ;; Try to restore previous height of debugger - ;; window. - (condition-case nil - (window-resize - debugger-window - (- debugger-previous-window-height - (window-total-height debugger-window))) - (error nil))) + (when debugger-jumping-flag + ;; Try to restore previous height of debugger + ;; window. + (condition-case nil + (window-resize + debugger-window + (- debugger-previous-window-height + (window-total-height debugger-window))) + (error nil)) (setq debugger-previous-window debugger-window)) (message "") (let ((standard-output nil)