diff options
author | Kim F. Storm <[email protected]> | 2004-02-07 01:01:16 +0000 |
---|---|---|
committer | Kim F. Storm <[email protected]> | 2004-02-07 01:01:16 +0000 |
commit | 3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a (patch) | |
tree | 759bbf7d4afd721a362a77e50d4825b67723d4fd /lispref | |
parent | 7fdd1f6246331b446b137f7f685bd57230bdb6c3 (diff) |
(Text Lines): Add line-number-at-pos.
Diffstat (limited to 'lispref')
-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 72b84a6a0c..a0e151a161 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 |