Mercurial > emacs
diff lispref/positions.texi @ 53841:e1eb498238f9
(Text Lines): Add line-number-at-pos.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 07 Feb 2004 01:01:16 +0000 |
parents | d79cdcde0da3 |
children | 86085872de07 |
line wrap: on
line diff
--- a/lispref/positions.texi Sat Feb 07 01:00:22 2004 +0000 +++ b/lispref/positions.texi Sat Feb 07 01:01:16 2004 +0000 @@ -409,6 +409,12 @@ @end example @end defun +@defun line-number-at-pos &optional pos +@cindex line number +This function returns the line number in the current buffer +corresponding the buffer position @var{pos}. If @var{pos} is nil or +omitted, the current buffer position is used. + @ignore @c ================ The @code{previous-line} and @code{next-line} commands are functions