diff options
author | Martin Rudalics <rudalics@gmx.at> | 2016-08-13 09:59:14 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2016-08-13 09:59:14 +0200 |
commit | 6bb55a25fa77ce0f92401aa9945a506e9343aad5 (patch) | |
tree | 2e4f15e6575c626c10674649b3370b7f367df3b6 /lisp/window.el | |
parent | 50548fd9afe70c43b3a0c0869f8e889b307ee917 (diff) | |
download | emacs-6bb55a25fa77ce0f92401aa9945a506e9343aad5.tar.gz emacs-6bb55a25fa77ce0f92401aa9945a506e9343aad5.tar.bz2 emacs-6bb55a25fa77ce0f92401aa9945a506e9343aad5.zip |
Fix docs on `display-buffer-below-selected' (Bug#24213)
* lisp/window.el (display-buffer-below-selected): Fix
doc-string (Bug#24213).
* doc/lispref/windows.texi (Display Action Functions): Fix
documentation of `display-buffer-below-selected'.
Diffstat (limited to 'lisp/window.el')
-rw-r--r-- | lisp/window.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/window.el b/lisp/window.el index bf1f13e7766..11d7a4e90d4 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -6879,7 +6879,6 @@ raising the frame." (defun display-buffer--maybe-pop-up-frame-or-window (buffer alist) "Try displaying BUFFER based on `pop-up-frames' or `pop-up-windows'. - If `pop-up-frames' is non-nil (and not `graphic-only' on a text-only terminal), try with `display-buffer-pop-up-frame'. @@ -6894,8 +6893,11 @@ again with `display-buffer-pop-up-window'." (defun display-buffer-below-selected (buffer alist) "Try displaying BUFFER in a window below the selected window. -This either splits the selected window or reuses the window below -the selected one." +If there is a window below the selected one and that window +already displays BUFFER, use that window. Otherwise, try to +create a new window below the selected one and show BUFFER there. +If that attempt fails as well and there is a non-dedicated window +below the selected one, use that window." (let (window) (or (and (setq window (window-in-direction 'below)) (eq buffer (window-buffer window)) |