diff options
author | Juri Linkov <juri@linkov.net> | 2018-12-21 01:28:31 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2018-12-21 01:28:31 +0200 |
commit | 3f36651c6470bab951f12f486eb4928235f1ba50 (patch) | |
tree | 5f32e7b4f9f4a5b6f825be61588b9f11b8570e39 /lisp/windmove.el | |
parent | a4e6dbdcbc18a12deb8b63e43e0a7cf63b8516fc (diff) | |
download | emacs-3f36651c6470bab951f12f486eb4928235f1ba50.tar.gz emacs-3f36651c6470bab951f12f486eb4928235f1ba50.tar.bz2 emacs-3f36651c6470bab951f12f486eb4928235f1ba50.zip |
* 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.el | 4 |
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) |