]> git.eshelyaron.com Git - emacs.git/commitdiff
(display-buffer): Use lru window if current window
authorAndreas Schwab <schwab@suse.de>
Sun, 8 Jun 2008 07:54:25 +0000 (07:54 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 8 Jun 2008 07:54:25 +0000 (07:54 +0000)
cannot be split.

lisp/ChangeLog
lisp/window.el

index f7bb9fc3205206854739eb8f6ab4d5ec412eec53..8a5b4058b5ed3bab99747d07b688e08629fbdc48 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-08  Andreas Schwab  <schwab@suse.de>
+
+       * window.el (display-buffer): Use lru window if current window
+       cannot be split.
+
 2008-06-08  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * apropos.el (apropos-library): New command and new button.
index 86da093a1842856a16c0a5539aab79826990fba5..74bcdcdaef19f3d2416b2738b42044c639a897b2 100644 (file)
@@ -1009,7 +1009,8 @@ consider all visible or iconified frames."
                 (or (window--try-to-split-window
                      (get-largest-window frame-to-use t))
                     (window--try-to-split-window
-                     (get-lru-window frame-to-use t))))
+                     (get-lru-window frame-to-use t))
+                    (get-lru-window frame-to-use nil)))
           (window--display-buffer-2 buffer window-to-use)))
      ((setq window-to-use
            ;; Reuse an existing window.