aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMark Oteiza2016-05-26 21:47:18 -0400
committerMark Oteiza2016-05-27 07:04:58 -0400
commitee297210cffb9e8d05912686a39fa158414ba050 (patch)
tree7ac61fd596bb6eabcb9ca136945862bab075a2cd /doc
parentf865e2f1e8878f7992d61a39bceb369c28a77706 (diff)
downloademacs-ee297210cffb9e8d05912686a39fa158414ba050.tar.gz
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')
-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
2171@code{switch-to-buffer}. 2171@code{switch-to-buffer}.
2172@end defopt 2172@end defopt
2173 2173
2174By default, @code{switch-to-buffer} shows the buffer at its position of 2174By default, @code{switch-to-buffer} tries to preserve
2175@code{point}. This behavior can be tuned using the following option. 2175@code{window-point}. This behavior can be tuned using the following
2176option.
2176 2177
2177@defopt switch-to-buffer-preserve-window-point 2178@defopt switch-to-buffer-preserve-window-point
2178If this variable is @code{nil}, @code{switch-to-buffer} displays the 2179If this variable is @code{nil}, @code{switch-to-buffer} displays the