summaryrefslogtreecommitdiff
path: root/lisp/windmove.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2018-12-21 01:28:31 +0200
committerJuri Linkov <juri@linkov.net>2018-12-21 01:28:31 +0200
commit3f36651c6470bab951f12f486eb4928235f1ba50 (patch)
tree5f32e7b4f9f4a5b6f825be61588b9f11b8570e39 /lisp/windmove.el
parenta4e6dbdcbc18a12deb8b63e43e0a7cf63b8516fc (diff)
downloademacs-3f36651c6470bab951f12f486eb4928235f1ba50.tar.gz
* lisp/window.el (switch-to-buffer-obey-display-actions): New defcustom.
(switch-to-buffer): Use it. (Bug#32790) (switch-to-buffer-preserve-window-point): Mention it in docstring. * lisp/windmove.el (windmove-display-in-direction): Mention it in docstring. * doc/lispref/windows.texi (Switching Buffers): Document switch-to-buffer-obey-display-actions.
Diffstat (limited to 'lisp/windmove.el')
-rw-r--r--lisp/windmove.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/windmove.el b/lisp/windmove.el
index 6d61806a831..c16c12444a0 100644
--- a/lisp/windmove.el
+++ b/lisp/windmove.el
@@ -588,7 +588,9 @@ By default, select the window with a displayed buffer.
If prefix ARG is `C-u', reselect a previously selected window.
If `windmove-display-no-select' is non-nil, this command doesn't
select the window with a displayed buffer, and the meaning of
-the prefix argument is reversed."
+the prefix argument is reversed.
+When `switch-to-buffer-obey-display-actions' is non-nil,
+`switch-to-buffer' commands are also supported."
(let* ((no-select (not (eq (consp arg) windmove-display-no-select))) ; xor
(old-window (or (minibuffer-selected-window) (selected-window)))
(new-window)