Mercurial > emacs
comparison lispref/positions.texi @ 56484:17695367365d
(Text Lines): Add anchor for `count-lines'.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Mon, 19 Jul 2004 21:01:07 +0000 |
parents | 5745bf089073 |
children | 23dfc76d3625 b9eee0a7bef5 |
comparison
equal
deleted
inserted
replaced
56483:0ac475fb519c | 56484:17695367365d |
---|---|
387 In an interactive call, @var{count} is the numeric prefix argument. | 387 In an interactive call, @var{count} is the numeric prefix argument. |
388 @end deffn | 388 @end deffn |
389 | 389 |
390 @defun count-lines start end | 390 @defun count-lines start end |
391 @cindex lines in region | 391 @cindex lines in region |
392 @anchor{Definition of count-lines} | |
392 This function returns the number of lines between the positions | 393 This function returns the number of lines between the positions |
393 @var{start} and @var{end} in the current buffer. If @var{start} and | 394 @var{start} and @var{end} in the current buffer. If @var{start} and |
394 @var{end} are equal, then it returns 0. Otherwise it returns at least | 395 @var{end} are equal, then it returns 0. Otherwise it returns at least |
395 1, even if @var{start} and @var{end} are on the same line. This is | 396 1, even if @var{start} and @var{end} are on the same line. This is |
396 because the text between them, considered in isolation, must contain at | 397 because the text between them, considered in isolation, must contain at |