$window-col - Window cursor column (no expansion)
$window-line - Window cursor line (with narrows)
$window-acol - Window cursor actual column (expansion)
$window-aline - Window cursor actual line (ignore narrows)
$window-col integer
0 <= integer <= 65535
$window-line integer
1 <= integer <= n
$window-acol integer
0 <= integer <= n
$window-aline integer
1 <= integer <= n
$window-col is defined as the current position of the cursor in the current line in the current window. Column zero is the left hand edge. This differs from $window-acol in that tab and special characters only count for 1 character. $window-col is valid in the range 0 - n.
$window-line is defined as the current buffer line number the cursor is on in the current window. Line numbering starts from 1. $window-line is valid in the range 1 - n.
$window-aline is identical to $window-line except when the current buffer contains narrowed out sections before the current line. In this case $window-line will be set to the line number without counting the number of lines in the narrow, whereas $window-aline will return the current line number including all lines narrowed out before it. When this variable is set, the line required may lie in a narrowed out section in which case the narrow is automatically removed. See narrow-buffer(2) for more information on narrowing.
$window-acol is defined as the current column of the cursor in the current window. Column zero is the left hand edge. This differs from $window-col in that tab and special characters may not count for 1 character.
Variable $window-wcol was renamed to $window-acol in June 2000. Variable $window-wline was also removed and a new variable $window-y-scroll introduced at this time. The following macro code can be used to calculate the value of the original $window-wline variable:
&sub &sub $window-line $window-y-scroll 1
(c) Copyright JASSPA 2001
Last Modified: 2001/07/14
Generated On: 2001/08/15