comparison lispref/windows.texi @ 42985:0750cae9d8c8

Clarifications.
author Richard M. Stallman <rms@gnu.org>
date Sat, 26 Jan 2002 23:19:48 +0000
parents f939e64a198b
children a38ad9338357
comparison
equal deleted inserted replaced
42984:069f39874fde 42985:0750cae9d8c8
1349 1349
1350 @defopt scroll-margin 1350 @defopt scroll-margin
1351 This option specifies the size of the scroll margin---a minimum number 1351 This option specifies the size of the scroll margin---a minimum number
1352 of lines between point and the top or bottom of a window. Whenever 1352 of lines between point and the top or bottom of a window. Whenever
1353 point gets within this many lines of the top or bottom of the window, 1353 point gets within this many lines of the top or bottom of the window,
1354 the window scrolls automatically (if possible) to move point out of the 1354 redisplay scrolls the text automatically (if possible) to move point
1355 margin, closer to the center of the window. 1355 out of the margin, closer to the center of the window.
1356 @end defopt 1356 @end defopt
1357 1357
1358 @defopt scroll-conservatively 1358 @defopt scroll-conservatively
1359 This variable controls how scrolling is done automatically when point 1359 This variable controls how scrolling is done automatically when point
1360 moves off the screen (or into the scroll margin). If the value is zero, 1360 moves off the screen (or into the scroll margin). If the value is a
1361 then redisplay scrolls the text to center point vertically in the 1361 positive integer @var{n}, then redisplay scrolls the text up to
1362 window. If the value is a positive integer @var{n}, then redisplay 1362 @var{n} lines in either direction, if that will bring point back into
1363 scrolls the window up to @var{n} lines in either direction, if that will 1363 proper view. This action is called @dfn{conservative scrolling}.
1364 bring point back into view. Otherwise, it centers point. The default 1364 Otherwise, scrolling happens in the usual way, under the control of
1365 value is zero. 1365 other variables such as @code{scroll-up-aggressively} and
1366 @code{scroll-down-aggressively}.
1367
1368 The default value is zero, which means that conservative scrolling
1369 never happens.
1366 @end defopt 1370 @end defopt
1367 1371
1368 @defopt scroll-down-aggressively 1372 @defopt scroll-down-aggressively
1369 @tindex scroll-down-aggressively 1373 @tindex scroll-down-aggressively
1370 The value of this variable should be either @code{nil} or a fraction 1374 The value of this variable should be either @code{nil} or a fraction
1408 @code{2}. 1412 @code{2}.
1409 @end defopt 1413 @end defopt
1410 1414
1411 @deffn Command recenter &optional count 1415 @deffn Command recenter &optional count
1412 @cindex centering point 1416 @cindex centering point
1413 This function scrolls the selected window to put the text where point 1417 This function scrolls the text in the selected window so that point is
1414 is located at a specified vertical position within the window. 1418 displayed at a specified vertical position within the window. It does
1415 1419 not ``move point'' with respect to the text.
1416 If @var{count} is a nonnegative number, it puts the line containing 1420
1417 point @var{count} lines down from the top of the window. If @var{count} 1421 If @var{count} is a nonnegative number, that puts the line containing
1418 is a negative number, then it counts upward from the bottom of the 1422 point @var{count} lines down from the top of the window. If
1419 window, so that @minus{}1 stands for the last usable line in the window. 1423 @var{count} is a negative number, then it counts upward from the
1420 If @var{count} is a non-@code{nil} list, then it stands for the line in 1424 bottom of the window, so that @minus{}1 stands for the last usable
1421 the middle of the window. 1425 line in the window. If @var{count} is a non-@code{nil} list, then it
1426 stands for the line in the middle of the window.
1422 1427
1423 If @var{count} is @code{nil}, @code{recenter} puts the line containing 1428 If @var{count} is @code{nil}, @code{recenter} puts the line containing
1424 point in the middle of the window, then clears and redisplays the entire 1429 point in the middle of the window, then clears and redisplays the entire
1425 selected frame. 1430 selected frame.
1426 1431