summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-06-21 11:17:29 +0300
committerEli Zaretskii <eliz@gnu.org>2014-06-21 11:17:29 +0300
commit97a1ef484e61190deece48ee73b9b9d3b6be221c (patch)
treed873f3153d0974a44c7d929780506ec27be68fbb /src/indent.c
parent637bce026b02dc188eea42188e1d8ea8f4d3de3f (diff)
downloademacs-97a1ef484e61190deece48ee73b9b9d3b6be221c.tar.gz
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.
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c9
1 files changed, 6 insertions, 3 deletions
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
parameters such as width, horizontal scrolling, and so on.
The default is to use the selected window's parameters.
-LINES can optionally take the form (COLS . LINES), in which case
-the motion will not stop at the start of a screen line but on
-its column COLS (if such exists on that line, that is).
+LINES can optionally take the form (COLS . LINES), in which case the
+motion will not stop at the start of a screen line but COLS column
+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,
regardless of which buffer is displayed in WINDOW.