aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/windows.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/windows.texi')
-rw-r--r--doc/lispref/windows.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 6f3de0c8a0e..affa28c9202 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -3924,6 +3924,21 @@ redisplay scrolls the text automatically (if possible) to move point
3924out of the margin, closer to the center of the window. 3924out of the margin, closer to the center of the window.
3925@end defopt 3925@end defopt
3926 3926
3927@defopt maximum-scroll-margin
3928This variable limits the effective value of @code{scroll-margin} to a
3929fraction of the current window line height. For example, if the
3930current window has 20 lines and @code{maximum-scroll-margin} is 0.1,
3931then the scroll margins will never be larger than 2 lines, no matter
3932how big @code{scroll-margin} is.
3933
3934@code{maximum-scroll-margin} itself has a maximum value of 0.5, which
3935allows setting margins large to keep the cursor at the middle line of
3936the window (or two middle lines if the window has an even number of
3937lines). If it's set to a larger value (or any value other than a
3938float between 0.0 and 0.5) then the default value of 0.25 will be used
3939instead.
3940@end defopt
3941
3927@defopt scroll-conservatively 3942@defopt scroll-conservatively
3928This variable controls how scrolling is done automatically when point 3943This variable controls how scrolling is done automatically when point
3929moves off the screen (or into the scroll margin). If the value is a 3944moves off the screen (or into the scroll margin). If the value is a