emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7793db6: Fix last fix in `display-buffer-record-win


From: Martin Rudalics
Subject: [Emacs-diffs] master 7793db6: Fix last fix in `display-buffer-record-window'.
Date: Wed, 22 Apr 2015 13:03:20 +0000

branch: master
commit 7793db6a762112944ab05b1c03884632bd9d91cc
Author: Martin Rudalics <address@hidden>
Commit: Martin Rudalics <address@hidden>

    Fix last fix in `display-buffer-record-window'.
    
    * lisp/window.el (display-buffer-record-window): Fix last fix.
---
 lisp/window.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/window.el b/lisp/window.el
index 07e477d..32467c3 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5481,7 +5481,8 @@ element is BUFFER."
            (setcar quit-restore 'same)
            ;; The selected-window might have changed in
            ;; between (Bug#20353).
-           (unless (memq (selected-window) '(window (nth 2 quit-restore)))
+           (unless (or (eq window (selected-window))
+                        (eq window (nth 2 quit-restore)))
              (setcar (cddr quit-restore) (selected-window)))))
       ;; WINDOW shows another buffer.
       (with-current-buffer (window-buffer window)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]