diff man/lispref/positions.texi @ 290:c9fe270a4101 r21-0b43

Import from CVS: tag r21-0b43
author cvs
date Mon, 13 Aug 2007 10:36:47 +0200
parents 7df0dd720c89
children 6cb5e14cd98e
line wrap: on
line diff
--- a/man/lispref/positions.texi	Mon Aug 13 10:35:55 2007 +0200
+++ b/man/lispref/positions.texi	Mon Aug 13 10:36:47 2007 +0200
@@ -472,18 +472,24 @@
 
 
 @defun vertical-motion count &optional window
-This function moves point to the start of the screen line @var{count}
-screen lines down from the screen line containing point.  If @var{count}
+This function moves point to the start of the frame line @var{count}
+frame lines down from the frame line containing point.  If @var{count}
 is negative, it moves up instead.
 
 @code{vertical-motion} returns the number of lines moved.  The value may
 be less in absolute value than @var{count} if the beginning or end of
 the buffer was reached.
 
-The window @var{window} is used for obtaining parameters such as the
-width, the horizontal scrolling, and the display table.  But
-@code{vertical-motion} always operates on the current buffer, even if
-@var{window} currently displays some other buffer.
+Note that @code{vertical-motion} sets @var{window}'s buffer's point, not
+@var{window}'s point. (This differs from FSF Emacs, which buggily always
+sets current buffer's point, regardless of @var{window}.)
+@end defun
+
+@defun vertical-motion-pixels count &optional window
+This function is identical to @code{vertical-motion}, except that it
+returns the vertical pixel height of the motino which took place,
+instead of the actual number of lines moved.  A motion of zero lines
+returns the height of the current line.
 @end defun
 
 @deffn Command move-to-window-line count &optional window