# HG changeset patch # User Kim F. Storm # Date 1076115676 0 # Node ID e1eb498238f9489f96f7fcebb9f697f75459f755 # Parent 4087f39d4d352944b69ccc3726a7702c26dd72be (Text Lines): Add line-number-at-pos. diff -r 4087f39d4d35 -r e1eb498238f9 lispref/positions.texi --- 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