diff options
Diffstat (limited to 'lisp/window.el')
| -rw-r--r-- | lisp/window.el | 8 |
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. |