diff options
| author | Eli Zaretskii | 2014-06-21 11:17:29 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-06-21 11:17:29 +0300 |
| commit | 97a1ef484e61190deece48ee73b9b9d3b6be221c (patch) | |
| tree | d873f3153d0974a44c7d929780506ec27be68fbb | |
| parent | 637bce026b02dc188eea42188e1d8ea8f4d3de3f (diff) | |
| download | emacs-97a1ef484e61190deece48ee73b9b9d3b6be221c.tar.gz emacs-97a1ef484e61190deece48ee73b9b9d3b6be221c.zip | |
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.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/positions.texi | 6 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/indent.c | 9 |
4 files changed, 20 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c20a20409a2..4610c33796a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-06-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * positions.texi (Screen Lines): Clarify how columns are counted | ||
| 4 | by vertical-motion. | ||
| 5 | |||
| 1 | 2014-06-14 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-06-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * commands.texi (Accessing Mouse): Improve the wording of the | 8 | * commands.texi (Accessing Mouse): Improve the wording of the |
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index f83173e2038..fee36fa833d 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi | |||
| @@ -500,7 +500,11 @@ is negative, it moves up instead. | |||
| 500 | The @var{count} argument can be a cons cell, @code{(@var{cols} | 500 | The @var{count} argument can be a cons cell, @code{(@var{cols} |
| 501 | . @var{lines})}, instead of an integer. Then the function moves by | 501 | . @var{lines})}, instead of an integer. Then the function moves by |
| 502 | @var{lines} screen lines, and puts point @var{cols} columns from the | 502 | @var{lines} screen lines, and puts point @var{cols} columns from the |
| 503 | start of that screen line. | 503 | visual start of that screen line. Note that @var{cols} are counted |
| 504 | from the @emph{visual} start of the line; if the window is scrolled | ||
| 505 | horizontally (@pxref{Horizontal Scrolling}), the column on which point | ||
| 506 | will end is in addition to the number of columns by which the text is | ||
| 507 | scrolled. | ||
| 504 | 508 | ||
| 505 | The return value is the number of screen lines over which point was | 509 | The return value is the number of screen lines over which point was |
| 506 | moved. The value may be less in absolute value than @var{count} if | 510 | moved. The value may be less in absolute value than @var{count} if |
diff --git a/src/ChangeLog b/src/ChangeLog index f28a6a63ec4..93a25ba2871 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * indent.c (Fvertical_motion): Doc fix. | ||
| 4 | |||
| 1 | 2014-06-21 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-06-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Port to OS X ACLs (Bug#17810). | 7 | Port to OS X ACLs (Bug#17810). |
diff --git a/src/indent.c b/src/indent.c index dc862518924..f492461bf50 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1944,9 +1944,12 @@ The optional second argument WINDOW specifies the window to use for | |||
| 1944 | parameters such as width, horizontal scrolling, and so on. | 1944 | parameters such as width, horizontal scrolling, and so on. |
| 1945 | The default is to use the selected window's parameters. | 1945 | The default is to use the selected window's parameters. |
| 1946 | 1946 | ||
| 1947 | LINES can optionally take the form (COLS . LINES), in which case | 1947 | LINES can optionally take the form (COLS . LINES), in which case the |
| 1948 | the motion will not stop at the start of a screen line but on | 1948 | motion will not stop at the start of a screen line but COLS column |
| 1949 | its column COLS (if such exists on that line, that is). | 1949 | from the visual start of the line (if such exists on that line, that |
| 1950 | is). If the line is scrolled horizontally, COLS is interpreted | ||
| 1951 | visually, i.e., as addition to the columns of text beyond the left | ||
| 1952 | edge of the window. | ||
| 1950 | 1953 | ||
| 1951 | `vertical-motion' always uses the current buffer, | 1954 | `vertical-motion' always uses the current buffer, |
| 1952 | regardless of which buffer is displayed in WINDOW. | 1955 | regardless of which buffer is displayed in WINDOW. |