(display-buffer): Use lru window if current window

cannot be split.
This commit is contained in:
Andreas Schwab 2008-06-08 07:54:25 +00:00
parent 904d8c69fa
commit 73f60406a5
2 changed files with 7 additions and 1 deletions

View 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.

View 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.