]> git.eshelyaron.com Git - emacs.git/commitdiff
(display-buffer): Fix last fix.
authorMartin Rudalics <rudalics@gmx.at>
Mon, 5 Jan 2009 09:52:53 +0000 (09:52 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 5 Jan 2009 09:52:53 +0000 (09:52 +0000)
lisp/ChangeLog
lisp/window.el

index 988a1689d3d2927cce21644e5d1b93705cb00d54..10fcc280be849292d45a6ad722e9c28a6bdff025 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-05  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (display-buffer): Fix last fix.
+
 2009-01-05  Juanma Barranquero  <lekktu@gmail.com>
 
        * desktop.el (desktop-save-in-desktop-dir): Use `abbreviate-file-name'
index da49107f7d1a6fc80f81e804fa8f1afc60c5b716..c529e272ce220a3c0fd94ec070587f1b7e18955a 100644 (file)
@@ -1008,10 +1008,9 @@ consider all visible or iconified frames."
                        (last-nonminibuffer-frame))))
        (setq window-to-use
              (catch 'found
-               ;; Search all visible and iconified frames for a window
-               ;; displaying BUFFER.  Return the selected window only
-               ;; if can-use-selected-window says we may do so.
-               (dolist (window (get-buffer-window-list buffer 'nomini 0))
+               ;; Search frames for a window displaying BUFFER.  Return
+               ;; the selected window only if we are allowed to do so.
+               (dolist (window (get-buffer-window-list buffer 'nomini frames))
                  (when (or can-use-selected-window
                            (not (eq (selected-window) window)))
                    (throw 'found window))))))