# HG changeset patch # User Richard M. Stallman # Date 1156076218 0 # Node ID 66b140055b7d99895b2fec2a44182bf5f61d71f2 # Parent 466083d03cb4beccde73f3dee185f94d386550cb (line-number-at-pos): Doc fix. diff -r 466083d03cb4 -r 66b140055b7d lisp/simple.el --- 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))