]> git.eshelyaron.com Git - emacs.git/commitdiff
(Text Lines): Add line-number-at-pos.
authorKim F. Storm <storm@cua.dk>
Sat, 7 Feb 2004 01:01:16 +0000 (01:01 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 7 Feb 2004 01:01:16 +0000 (01:01 +0000)
lispref/positions.texi

index 72b84a6a0cee0ccad17d27976b08b2034f4af8f7..a0e151a1616f09db4dd7bfef0ea31218f8b38c9e 100644 (file)
@@ -409,6 +409,12 @@ Here is an example of using @code{count-lines}:
 @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