Commit 4737eec9 authored by Dmitry Gutov's avatar Dmitry Gutov Committed by Martin Rudalics

In quit-window always restore window height when it's saved in

quit-restore parameter.

* window.el (quit-window): Always restore window height when
it's saved in quit-restore parameter.
parent 657924ff
2012-07-06 Dmitry Gutov <dgutov@yandex.ru>
* window.el (quit-window): Always restore window height when
it's saved in quit-restore parameter.
2012-07-06 Glenn Morris <rgm@gnu.org>
* simple.el (kill-whole-line): Doc tweak.
......
......@@ -3069,9 +3069,8 @@ one. If non-nil, reset `quit-restore' parameter to nil."
(buffer-live-p (car quad))
(eq (nth 3 quit-restore) buffer))
;; Show another buffer stored in quit-restore parameter.
(setq resize (with-current-buffer buffer
(and temp-buffer-resize-mode
(/= (nth 3 quad) (window-total-size window)))))
(setq resize (and (integerp (nth 3 quad))
(/= (nth 3 quad) (window-total-size window))))
(set-window-dedicated-p window nil)
(when resize
;; Try to resize WINDOW to its old height but don't signal an
......
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