changeset 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 4087f39d4d35
children 3509bc91f7c8
files lispref/positions.texi
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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