changeset 100909:5860868ca728

(display-buffer): Fix last fix.
author Martin Rudalics <rudalics@gmx.at>
date Mon, 05 Jan 2009 09:52:53 +0000
parents a9dc0e7c3f2b
children 772f216c2808
files lisp/ChangeLog lisp/window.el
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Jan 05 03:18:22 2009 +0000
+++ b/lisp/ChangeLog	Mon Jan 05 09:52:53 2009 +0000
@@ -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'
--- a/lisp/window.el	Mon Jan 05 03:18:22 2009 +0000
+++ b/lisp/window.el	Mon Jan 05 09:52:53 2009 +0000
@@ -1008,10 +1008,9 @@
 			(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))))))