From bd168c0651be4fd71141ba19d54389b26258e5bb Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Tue, 21 Jun 2011 10:51:30 +0200 Subject: [PATCH] Fix last fix of display-buffer-normalize-options. --- lisp/window.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/window.el b/lisp/window.el index 605370aa176..4c56d7ffe11 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -5437,11 +5437,12 @@ options." ;; `pop-up-frames', `display-buffer-reuse-frames', and ;; `last-nonminibuffer-frame' set means search for a window shoing ;; the same buffer of another frame. - (let ((frames (or (last-nonminibuffer-frame) - (and (or use-pop-up-frames - display-buffer-reuse-frames) + (let ((frames (or (and (or use-pop-up-frames + display-buffer-reuse-frames + (not (last-nonminibuffer-frame))) ;; All visible or iconfied frames. - 0)))) + 0) + (last-nonminibuffer-frame)))) (when frames (setq specifiers (cons (list 'reuse-window 'other 'same frames) -- 2.39.2