In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).
* window.el (display-buffer-below-selected): Restore original behavior if buffer is already displayed in the window below the selected one (Bug#18181).
This commit is contained in:
parent
c70e7e185e
commit
02e0530477
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-08-09 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* window.el (display-buffer-below-selected): Restore original
|
||||
behavior if buffer is already displayed in the window below the
|
||||
selected one (Bug#18181).
|
||||
|
||||
2014-08-08 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
|
||||
|
|
|
@ -6373,7 +6373,10 @@ again with `display-buffer-pop-up-window'."
|
|||
This either splits the selected window or reuses the window below
|
||||
the selected one."
|
||||
(let (window)
|
||||
(or (and (not (frame-parameter nil 'unsplittable))
|
||||
(or (and (setq window (window-in-direction 'below))
|
||||
(eq buffer (window-buffer window))
|
||||
(window--display-buffer buffer window 'reuse alist))
|
||||
(and (not (frame-parameter nil 'unsplittable))
|
||||
(let ((split-height-threshold 0)
|
||||
split-width-threshold)
|
||||
(setq window (window--try-to-split-window (selected-window) alist)))
|
||||
|
|
Loading…
Add table
Reference in a new issue