comparison man/lispref/windows.texi @ 5686:c6b1500299a7

recenter-top-bottom synced from GNU and new default for C-l Partial implementation of recenter-top-bottom. GNU has support for scroll-margin that is not in XEmacs so that is left out. lisp/ChangeLog: 2012-09-18 Mats Lidell <matsl@xemacs.org> * window-xemacs.el (recenter-positions): New defcustom. (recenter-top-bottom): New command. (recenter-last-op): New defvar. * replace.el (perform-replace): Let-bind recenter-last-op to nil. For def=recenter, replace `recenter' with `recenter-top-bottom' that is called with `this-command' and `last-command' let-bound to `recenter-top-bottom'. When the last `def' was not `recenter', set `recenter-last-op' to nil. * keydefs.el (global-map): Make recenter-top-bottom new default for C-l. etc/ChangeLog: 2012-09-18 Mats Lidell <matsl@xemacs.org> * TUTORIAL: Updated due to recenter-top-bottom man/ChangeLog: 2012-09-18 Mats Lidell <matsl@xemacs.org> * lispref/windows.texi (Vertical Scrolling): Added recenter-top-bottom and recenter-positions * xemacs/display.texi (Display): Rearranged and added documentation due to new function recenter-top-bottom.
author Mats Lidell <mats.lidell@cag.se>
date Tue, 18 Sep 2012 08:58:28 +0200
parents a46c5c8d6564
children 9fae6227ede5
comparison
equal deleted inserted replaced
5685:aa5f38ecb804 5686:c6b1500299a7
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the XEmacs Lisp Reference Manual. 2 @c This is part of the XEmacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 2012 Free Software Foundation, Inc.
4 @c See the file lispref.texi for copying conditions. 4 @c See the file lispref.texi for copying conditions.
5 @setfilename ../../info/windows.info 5 @setfilename ../../info/windows.info
6 @node Windows, Frames, Buffers, Top 6 @node Windows, Frames, Buffers, Top
7 @chapter Windows 7 @chapter Windows
8 8
1475 (global-set-key [kp-multiply] 'line-to-top-of-window) 1475 (global-set-key [kp-multiply] 'line-to-top-of-window)
1476 @end group 1476 @end group
1477 @end example 1477 @end example
1478 @end deffn 1478 @end deffn
1479 1479
1480 @deffn Command recenter-top-bottom &optional count
1481 This command, which is the default binding for @kbd{C-l}, acts like
1482 @code{recenter}, except if called with no argument. In that case,
1483 successive calls place point according to the cycling order defined
1484 by the variable @code{recenter-positions}.
1485 @end deffn
1486
1487 @defopt recenter-positions
1488 This variable controls how @code{recenter-top-bottom} behaves when
1489 called with no argument. The default value is @code{(middle top
1490 bottom)}, which means that successive calls of
1491 @code{recenter-top-bottom} with no argument cycle between placing
1492 point at the middle, top, and bottom of the window.
1493 @end defopt
1494
1495
1480 @node Horizontal Scrolling 1496 @node Horizontal Scrolling
1481 @section Horizontal Scrolling 1497 @section Horizontal Scrolling
1482 @cindex horizontal scrolling 1498 @cindex horizontal scrolling
1483 1499
1484 Because we read English first from top to bottom and second from left 1500 Because we read English first from top to bottom and second from left