aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-02-07 01:01:16 +0000
committerKim F. Storm2004-02-07 01:01:16 +0000
commit3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a (patch)
tree759bbf7d4afd721a362a77e50d4825b67723d4fd
parent7fdd1f6246331b446b137f7f685bd57230bdb6c3 (diff)
downloademacs-3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a.tar.gz
emacs-3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a.zip
(Text Lines): Add line-number-at-pos.
-rw-r--r--lispref/positions.texi6
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
414This function returns the line number in the current buffer
415corresponding the buffer position @var{pos}. If @var{pos} is nil or
416omitted, the current buffer position is used.
417
412@ignore 418@ignore
413@c ================ 419@c ================
414The @code{previous-line} and @code{next-line} commands are functions 420The @code{previous-line} and @code{next-line} commands are functions