summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2019-06-11 09:28:29 +0200
committerMartin Rudalics <rudalics@gmx.at>2019-06-11 09:28:29 +0200
commit5ca093d2814fe5574c720338fc64cba44357f9b3 (patch)
tree0aba0441bd9fc65b954670d0a9b2fd2ba38f139c /lisp/window.el
parentadd2cac586d29c574ae4ba12a2252dce0694f1d4 (diff)
downloademacs-5ca093d2814fe5574c720338fc64cba44357f9b3.tar.gz
Fix doc of 'display-buffer-in-previous-window' (Bug#36161)
* doc/lispref/windows.texi (Buffer Display Action Functions): * lisp/window.el (display-buffer-in-previous-window): Tell that 'display-buffer-in-previous-window' prefers non-selected windows (Bug#36161).
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 58e22a2306a..c2d5b02be05 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7473,8 +7473,11 @@ selected frame if `display-buffer-reuse-frames' and
terminal if either of those variables is non-nil.
If ALIST has a `previous-window' entry, the window specified by
-that entry will override any other window found by the methods
-above, even if that window never showed BUFFER before."
+that entry may override any other window found by the methods
+above, even if that window never showed BUFFER before.
+
+Avoid using the selected window if another eligible window has
+shown BUFFER before."
(let* ((alist-entry (assq 'reusable-frames alist))
(inhibit-same-window
(cdr (assq 'inhibit-same-window alist)))