Mercurial > emacs
comparison lispref/positions.texi @ 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 | d79cdcde0da3 |
children | 86085872de07 |
comparison
equal
deleted
inserted
replaced
53840:4087f39d4d35 | 53841:e1eb498238f9 |
---|---|
407 -1)) | 407 -1)) |
408 @end group | 408 @end group |
409 @end example | 409 @end example |
410 @end defun | 410 @end defun |
411 | 411 |
412 @defun line-number-at-pos &optional pos | |
413 @cindex line number | |
414 This function returns the line number in the current buffer | |
415 corresponding the buffer position @var{pos}. If @var{pos} is nil or | |
416 omitted, the current buffer position is used. | |
417 | |
412 @ignore | 418 @ignore |
413 @c ================ | 419 @c ================ |
414 The @code{previous-line} and @code{next-line} commands are functions | 420 The @code{previous-line} and @code{next-line} commands are functions |
415 that should not be used in programs. They are for users and are | 421 that should not be used in programs. They are for users and are |
416 mentioned here only for completeness. | 422 mentioned here only for completeness. |