changeset 72451:66b140055b7d

(line-number-at-pos): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sun, 20 Aug 2006 12:16:58 +0000
parents 466083d03cb4
children bcc1f5792592
files lisp/simple.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun Aug 20 12:16:26 2006 +0000
+++ b/lisp/simple.el	Sun Aug 20 12:16:58 2006 +0000
@@ -899,7 +899,9 @@
 
 (defun line-number-at-pos (&optional pos)
   "Return (narrowed) buffer line number at position POS.
-If POS is nil, use current buffer location."
+If POS is nil, use current buffer location.
+Counting starts at (point-min), so the value refers
+to the contents of the accessible portion of the buffer."
   (let ((opoint (or pos (point))) start)
     (save-excursion
       (goto-char (point-min))