From: Kim F. Storm Date: Sat, 7 Feb 2004 01:01:16 +0000 (+0000) Subject: (Text Lines): Add line-number-at-pos. X-Git-Tag: ttn-vms-21-2-B4~7725 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a;p=emacs.git (Text Lines): Add line-number-at-pos. --- diff --git a/lispref/positions.texi b/lispref/positions.texi index 72b84a6a0ce..a0e151a1616 100644 --- a/lispref/positions.texi +++ b/lispref/positions.texi @@ -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