diff options
author | Martin Rudalics <rudalics@gmx.at> | 2008-06-06 08:01:29 +0000 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2008-06-06 08:01:29 +0000 |
commit | 0a3a94b3d28f55ceb4d443da17c00c9bda83eb4a (patch) | |
tree | 9c27d7eac01ad5bd185b2a752c8f0bd4899ec94f /lisp/window.el | |
parent | 10b6d5c455c4b479ff27eb8ea0882c098cae2b18 (diff) | |
download | emacs-0a3a94b3d28f55ceb4d443da17c00c9bda83eb4a.tar.gz |
(display-buffer): Remove dead call to get-lru-window.
Diffstat (limited to 'lisp/window.el')
-rw-r--r-- | lisp/window.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el index 3d2c02d7fc7..96511250ce0 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -849,6 +849,9 @@ returned by `split-window' or `split-window-preferred-function'." (defun window--frame-usable-p (frame) "Return frame FRAME if it can be used to display another buffer." (let ((window (frame-root-window frame))) + ;; `frame-root-window' may be an internal window which is considered + ;; "dead" by `window-live-p'. Hence if `window' is not live we + ;; implicitly know that `frame' has a visible window we can use. (when (or (not (window-live-p window)) (and (not (window-minibuffer-p window)) (not (window-dedicated-p window)))) @@ -1012,8 +1015,7 @@ consider all visible or iconified frames." (get-largest-window 'visible nil) (get-buffer-window buffer 0) (get-largest-window 0 nil) - (frame-selected-window (funcall pop-up-frame-function)) - (get-lru-window t t))) + (frame-selected-window (funcall pop-up-frame-function)))) (window--even-window-heights window-to-use) (window--display-buffer-2 buffer window-to-use))))) |