diff options
| author | Kim F. Storm | 2004-02-07 01:01:16 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-02-07 01:01:16 +0000 |
| commit | 3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a (patch) | |
| tree | 759bbf7d4afd721a362a77e50d4825b67723d4fd | |
| parent | 7fdd1f6246331b446b137f7f685bd57230bdb6c3 (diff) | |
| download | emacs-3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a.tar.gz emacs-3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a.zip | |
(Text Lines): Add line-number-at-pos.
| -rw-r--r-- | lispref/positions.texi | 6 |
1 files changed, 6 insertions, 0 deletions
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}: | |||
| 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 |