X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8241495da57ca0efed1b2e86ff693b5614e0aebd..946173adb47e649dbcdfd905730a390cf7554357:/lispref/windows.texi diff --git a/lispref/windows.texi b/lispref/windows.texi index 5596a597ca..b8ba56bfff 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi @@ -272,7 +272,7 @@ You could define a simplified version of the function like this: (defun split-window-horizontally (&optional arg) "Split selected window into two windows, side by side..." (interactive "P") -@endgroup +@end group @group (let ((size (and arg (prefix-numeric-value arg)))) (and size (< size 0) @@ -1306,6 +1306,28 @@ window. If the value is a positive integer @var{n}, then redisplay scrolls the window up to @var{n} lines in either direction, if that will bring point back into view. Otherwise, it centers point. The default value is zero. + +A value of @code{nil} is equivalent to .5, since it centers point. This +variable automatically becomes buffer-local when set in any fashion. +@end defopt + +@defopt scroll-up-aggressively +@tindex scroll-up-aggressively +The value of this variable should be either @code{nil} or a fraction +@var{f} between 0 and 1. If it is a fraction, that specifies where on +the screen to put point when scrolling upward. More precisely, when a +window scrolls up because point is above the window start, the new start +position is chosen to put point @var{f} part of the window height from +the top. The larger @var{f}, the more aggressive the scrolling. + +This variable automatically becomes buffer-local when set in any fashion. +@end defopt + +@defopt scroll-down-aggressively +@tindex scroll-down-aggressively +Likewise, for scrolling down. The value, @var{f}, specifies how far +point should be placed from the bottom of the window; thus, as with +@code{scroll-up-aggressively}, a larger value scrolls more aggressively. @end defopt @defopt scroll-step