Commit 97a1ef48 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Improve documentation of how vertical-motion interprets columns.

 src/indent.c (Fvertical_motion): Doc fix.

 doc/lispref/positions.texi (Screen Lines): Clarify how columns are counted
 by vertical-motion.
parent 637bce02
2014-06-21 Eli Zaretskii <eliz@gnu.org>
* positions.texi (Screen Lines): Clarify how columns are counted
by vertical-motion.
2014-06-14 Eli Zaretskii <eliz@gnu.org> 2014-06-14 Eli Zaretskii <eliz@gnu.org>
* commands.texi (Accessing Mouse): Improve the wording of the * commands.texi (Accessing Mouse): Improve the wording of the
......
...@@ -500,7 +500,11 @@ is negative, it moves up instead. ...@@ -500,7 +500,11 @@ is negative, it moves up instead.
The @var{count} argument can be a cons cell, @code{(@var{cols} The @var{count} argument can be a cons cell, @code{(@var{cols}
. @var{lines})}, instead of an integer. Then the function moves by . @var{lines})}, instead of an integer. Then the function moves by
@var{lines} screen lines, and puts point @var{cols} columns from the @var{lines} screen lines, and puts point @var{cols} columns from the
start of that screen line. visual start of that screen line. Note that @var{cols} are counted
from the @emph{visual} start of the line; if the window is scrolled
horizontally (@pxref{Horizontal Scrolling}), the column on which point
will end is in addition to the number of columns by which the text is
scrolled.
The return value is the number of screen lines over which point was The return value is the number of screen lines over which point was
moved. The value may be less in absolute value than @var{count} if moved. The value may be less in absolute value than @var{count} if
......
2014-06-21 Eli Zaretskii <eliz@gnu.org>
* indent.c (Fvertical_motion): Doc fix.
2014-06-21 Paul Eggert <eggert@cs.ucla.edu> 2014-06-21 Paul Eggert <eggert@cs.ucla.edu>
Port to OS X ACLs (Bug#17810). Port to OS X ACLs (Bug#17810).
......
...@@ -1944,9 +1944,12 @@ The optional second argument WINDOW specifies the window to use for ...@@ -1944,9 +1944,12 @@ The optional second argument WINDOW specifies the window to use for
parameters such as width, horizontal scrolling, and so on. parameters such as width, horizontal scrolling, and so on.
The default is to use the selected window's parameters. The default is to use the selected window's parameters.
LINES can optionally take the form (COLS . LINES), in which case LINES can optionally take the form (COLS . LINES), in which case the
the motion will not stop at the start of a screen line but on motion will not stop at the start of a screen line but COLS column
its column COLS (if such exists on that line, that is). from the visual start of the line (if such exists on that line, that
is). If the line is scrolled horizontally, COLS is interpreted
visually, i.e., as addition to the columns of text beyond the left
edge of the window.
`vertical-motion' always uses the current buffer, `vertical-motion' always uses the current buffer,
regardless of which buffer is displayed in WINDOW. regardless of which buffer is displayed in WINDOW.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment