Mercurial > emacs
changeset 95596:b406f55ccc12
(display-buffer): Remove dead call to get-lru-window.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Fri, 06 Jun 2008 08:00:59 +0000 |
parents | 3adf48743a99 |
children | d89ef0f12bd4 |
files | lisp/window.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/window.el Fri Jun 06 05:59:38 2008 +0000 +++ b/lisp/window.el Fri Jun 06 08:00:59 2008 +0000 @@ -849,6 +849,9 @@ (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 @@ (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)))))