aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/window.el
diff options
context:
space:
mode:
authorJoakim Verona2011-11-02 12:27:54 +0100
committerJoakim Verona2011-11-02 12:27:54 +0100
commit67be5954c049eaa6a5f2ff39e4ec178b339f33cd (patch)
tree8ec46fd96a0859235cc436e1dd409d3f3531c360 /lisp/window.el
parent99a92fa3946e55ce4d891b1baa3ae26718508edf (diff)
parent1885e5b80a94e5653dd604fb0b7e579d6fe64c3e (diff)
downloademacs-67be5954c049eaa6a5f2ff39e4ec178b339f33cd.tar.gz
emacs-67be5954c049eaa6a5f2ff39e4ec178b339f33cd.zip
upstream
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/window.el b/lisp/window.el
index d254248c2c7..d93658a2cef 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2852,7 +2852,7 @@ displayed there."
2852 (t 2852 (t
2853 ;; Switch to another buffer in window. 2853 ;; Switch to another buffer in window.
2854 (set-window-dedicated-p nil nil) 2854 (set-window-dedicated-p nil nil)
2855 (switch-to-prev-buffer nil 'kill))) 2855 (switch-to-prev-buffer nil 'bury)))
2856 2856
2857 ;; Always return nil. 2857 ;; Always return nil.
2858 nil)) 2858 nil))
@@ -2985,7 +2985,6 @@ one. If non-nil, reset `quit-restore' parameter to nil."
2985 (setq resize (with-current-buffer buffer 2985 (setq resize (with-current-buffer buffer
2986 (and temp-buffer-resize-mode 2986 (and temp-buffer-resize-mode
2987 (/= (nth 3 quad) (window-total-size window))))) 2987 (/= (nth 3 quad) (window-total-size window)))))
2988 (unrecord-window-buffer window buffer)
2989 (set-window-dedicated-p window nil) 2988 (set-window-dedicated-p window nil)
2990 (when resize 2989 (when resize
2991 ;; Try to resize WINDOW to its old height but don't signal an 2990 ;; Try to resize WINDOW to its old height but don't signal an
@@ -2993,9 +2992,12 @@ one. If non-nil, reset `quit-restore' parameter to nil."
2993 (condition-case nil 2992 (condition-case nil
2994 (window-resize window (- (nth 3 quad) (window-total-size window))) 2993 (window-resize window (- (nth 3 quad) (window-total-size window)))
2995 (error nil))) 2994 (error nil)))
2996 ;; Restore WINDOW's previous buffer, window start and point. 2995 ;; Restore WINDOW's previous buffer, start and point position.
2997 (set-window-buffer-start-and-point 2996 (set-window-buffer-start-and-point
2998 window (nth 0 quad) (nth 1 quad) (nth 2 quad)) 2997 window (nth 0 quad) (nth 1 quad) (nth 2 quad))
2998 ;; Unrecord WINDOW's buffer here (Bug#9937) to make sure it's not
2999 ;; re-recorded by `set-window-buffer'.
3000 (unrecord-window-buffer window buffer)
2999 ;; Reset the quit-restore parameter. 3001 ;; Reset the quit-restore parameter.
3000 (set-window-parameter window 'quit-restore nil) 3002 (set-window-parameter window 'quit-restore nil)
3001 ;; Select old window. 3003 ;; Select old window.