Commit 29c45500 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(display-buffer): Fix last fix.

parent ae940284
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'
......
......@@ -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))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment