From 3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sat, 7 Feb 2004 01:01:16 +0000 Subject: [PATCH] (Text Lines): Add line-number-at-pos. --- lispref/positions.texi | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2