aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2004-02-07 01:01:16 +0000
committerKim F. Storm <[email protected]>2004-02-07 01:01:16 +0000
commit3faa99ca177e6b31d5d0a9037b3b7cde39ce2e3a (patch)
tree759bbf7d4afd721a362a77e50d4825b67723d4fd
parent7fdd1f6246331b446b137f7f685bd57230bdb6c3 (diff)
(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 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