aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'lispref')
-rw-r--r--lispref/positions.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/lispref/positions.texi b/lispref/positions.texi
index d79c53d6f36..5e9abd359c6 100644
--- a/lispref/positions.texi
+++ b/lispref/positions.texi
@@ -528,6 +528,24 @@ The value returned is the window line number point has moved to, with
528the top line in the window numbered 0. 528the top line in the window numbered 0.
529@end deffn 529@end deffn
530 530
531@defun count-screen-lines &optional beg end count-final-newline window
532This function returns the number of the screen lines occupied by the
533text between positions @var{beg} and @var{end}. These arguments default
534to the beginning and end of the accessible portion of the buffer.
535
536If region ends with a newline, it is significant if
537@var{count-final-newline} is non-@code{nil}. Otherwise it is ignored.
538
539The argument @var{window} specifies the window used for obtaining
540parameters such as width, horizontal scrolling, and so on. The default
541is the selected window.
542
543Like @code{vertical-motion}, @code{count-screen-lines} always uses the
544current buffer, regardless of which buffer is displayed in @var{window}.
545This makes possible to use @code{count-screen-lines} in any buffer,
546whether or not it is currently displayed in some window.
547@end defun
548
531@defun compute-motion from frompos to topos width offsets window 549@defun compute-motion from frompos to topos width offsets window
532This function scans the current buffer, calculating screen positions. 550This function scans the current buffer, calculating screen positions.
533It scans the buffer forward from position @var{from}, assuming that is 551It scans the buffer forward from position @var{from}, assuming that is