From: Richard M. Stallman Date: Sun, 20 Aug 2006 12:16:58 +0000 (+0000) Subject: (line-number-at-pos): Doc fix. X-Git-Tag: emacs-pretest-22.0.90~949 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79ffb765f25e6e1bc3c6664fcd24bf7edb3b2d32;p=emacs.git (line-number-at-pos): Doc fix. --- diff --git a/lisp/simple.el b/lisp/simple.el index f1b80968ff1..3e19a8573e5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -899,7 +899,9 @@ and the greater of them is not at the start of a line." (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))