aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJohn Shahid2018-06-28 09:13:45 -0400
committerEli Zaretskii2018-07-01 19:05:37 +0300
commit260768a64be39aada03247d6057698df97bcb800 (patch)
treef61ec4466fc4768a2b0c610a8fc1ac931a067746 /doc
parent7edc019651b3e16592d2d16616a7d4cecc285ae6 (diff)
downloademacs-260768a64be39aada03247d6057698df97bcb800.tar.gz
emacs-260768a64be39aada03247d6057698df97bcb800.zip
Add a new argument to 'recenter' to allow finer control of redisplay
* window.c (recenter): Add a new REDISPLAY argument to allow the caller to control the redisplay behavior. 'recenter' will only redisplay the frame if this new arg and 'recenter-redisplay' are both non-nil. (recenter-top-bottom): Pass an extra non-nil argument to 'recenter' to force a redisplay. (Bug#31325)
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 54977595956..9740bbebf2c 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -4138,7 +4138,7 @@ beginning or end of the buffer (depending on scrolling direction);
4138only if point is already on that position do they signal an error. 4138only if point is already on that position do they signal an error.
4139@end defopt 4139@end defopt
4140 4140
4141@deffn Command recenter &optional count 4141@deffn Command recenter &optional count redisplay
4142@cindex centering point 4142@cindex centering point
4143This function scrolls the text in the selected window so that point is 4143This function scrolls the text in the selected window so that point is
4144displayed at a specified vertical position within the window. It does 4144displayed at a specified vertical position within the window. It does
@@ -4152,8 +4152,9 @@ line in the window.
4152 4152
4153If @var{count} is @code{nil} (or a non-@code{nil} list), 4153If @var{count} is @code{nil} (or a non-@code{nil} list),
4154@code{recenter} puts the line containing point in the middle of the 4154@code{recenter} puts the line containing point in the middle of the
4155window. If @var{count} is @code{nil}, this function may redraw the 4155window. If @var{count} is @code{nil} and @var{redisplay} is
4156frame, according to the value of @code{recenter-redisplay}. 4156non-@code{nil}, this function may redraw the frame, according to the
4157value of @code{recenter-redisplay}.
4157 4158
4158When @code{recenter} is called interactively, @var{count} is the raw 4159When @code{recenter} is called interactively, @var{count} is the raw
4159prefix argument. Thus, typing @kbd{C-u} as the prefix sets the 4160prefix argument. Thus, typing @kbd{C-u} as the prefix sets the
@@ -4181,8 +4182,9 @@ respect to the entire window group.
4181 4182
4182@defopt recenter-redisplay 4183@defopt recenter-redisplay
4183If this variable is non-@code{nil}, calling @code{recenter} with a 4184If this variable is non-@code{nil}, calling @code{recenter} with a
4184@code{nil} argument redraws the frame. The default value is 4185@code{nil} @var{count} argument and non-@code{nil} @var{redisplay}
4185@code{tty}, which means only redraw the frame if it is a tty frame. 4186argument redraws the frame. The default value is @code{tty}, which
4187means only redraw the frame if it is a tty frame.
4186@end defopt 4188@end defopt
4187 4189
4188@deffn Command recenter-top-bottom &optional count 4190@deffn Command recenter-top-bottom &optional count