summaryrefslogtreecommitdiff
path: root/doc/lispref/windows.texi
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2016-05-26 21:47:18 -0400
committerMark Oteiza <mvoteiza@udel.edu>2016-05-27 07:04:58 -0400
commitee297210cffb9e8d05912686a39fa158414ba050 (patch)
tree7ac61fd596bb6eabcb9ca136945862bab075a2cd /doc/lispref/windows.texi
parentf865e2f1e8878f7992d61a39bceb369c28a77706 (diff)
downloademacs-ee297210cffb9e8d05912686a39fa158414ba050.tar.gz
emacs-ee297210cffb9e8d05912686a39fa158414ba050.tar.bz2
emacs-ee297210cffb9e8d05912686a39fa158414ba050.zip
Preserve buffer point in windows by default (Bug#4041).
* doc/lispref/windows.texi: Mention new default. * etc/NEWS: Mention new default. * lisp/window.el (switch-to-buffer-preserve-window-point): Default to t.
Diffstat (limited to 'doc/lispref/windows.texi')
-rw-r--r--doc/lispref/windows.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 9a09b35371d..015c557ef6d 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -2171,8 +2171,9 @@ This option does not affect non-interactive calls of
@code{switch-to-buffer}.
@end defopt
-By default, @code{switch-to-buffer} shows the buffer at its position of
-@code{point}. This behavior can be tuned using the following option.
+By default, @code{switch-to-buffer} tries to preserve
+@code{window-point}. This behavior can be tuned using the following
+option.
@defopt switch-to-buffer-preserve-window-point
If this variable is @code{nil}, @code{switch-to-buffer} displays the