aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2009-04-05 05:11:48 +0000
committerChong Yidong2009-04-05 05:11:48 +0000
commitea30ce4f232a5b21b14ab5d9338a1f4cf4639b37 (patch)
treed1ae4505d12c488f48688e38cf10ccb7922a69e7 /doc
parent9496c82e55f223ec0d5aadc3a608de3e2f45c9dc (diff)
downloademacs-ea30ce4f232a5b21b14ab5d9338a1f4cf4639b37.tar.gz
emacs-ea30ce4f232a5b21b14ab5d9338a1f4cf4639b37.zip
* positions.texi (Screen Lines): Document (cols . lines) argument
for vertical-motion.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/positions.texi11
2 files changed, 13 insertions, 3 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 35467cf747a..ebd2f54d07d 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12009-04-05 Chong Yidong <cyd@stupidchicken.com>
2
3 * positions.texi (Screen Lines): Document (cols . lines) argument
4 for vertical-motion.
5
12009-04-04 Chong Yidong <cyd@stupidchicken.com> 62009-04-04 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * frames.texi (Frames): Clean up introduction. Document `ns' 8 * frames.texi (Frames): Clean up introduction. Document `ns'
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index a74a4ab8098..06b696ea3a4 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -520,9 +520,14 @@ This function moves point to the start of the screen line @var{count}
520screen lines down from the screen line containing point. If @var{count} 520screen lines down from the screen line containing point. If @var{count}
521is negative, it moves up instead. 521is negative, it moves up instead.
522 522
523@code{vertical-motion} returns the number of screen lines over which it 523The @var{count} argument can be a cons cell, @code{(@var{cols}
524moved point. The value may be less in absolute value than @var{count} 524. @var{lines})}, instead of an integer. Then the function moves by
525if the beginning or end of the buffer was reached. 525@var{lines} screen lines, and puts point @var{cols} columns from the
526start of that screen line.
527
528The return value is the number of screen lines over which point was
529moved. The value may be less in absolute value than @var{count} if
530the beginning or end of the buffer was reached.
526 531
527The window @var{window} is used for obtaining parameters such as the 532The window @var{window} is used for obtaining parameters such as the
528width, the horizontal scrolling, and the display table. But 533width, the horizontal scrolling, and the display table. But