# HG changeset patch # User Martin Rudalics # Date 1212739259 0 # Node ID b406f55ccc128912575142461a9133f98fac4155 # Parent 3adf48743a99c1d846742449b20047d8e25f057b (display-buffer): Remove dead call to get-lru-window. diff -r 3adf48743a99 -r b406f55ccc12 lisp/window.el --- 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)))))