diff options
| -rw-r--r-- | lisp/simple.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 899 | 899 | ||
| 900 | (defun line-number-at-pos (&optional pos) | 900 | (defun line-number-at-pos (&optional pos) |
| 901 | "Return (narrowed) buffer line number at position POS. | 901 | "Return (narrowed) buffer line number at position POS. |
| 902 | If POS is nil, use current buffer location." | 902 | If POS is nil, use current buffer location. |
| 903 | Counting starts at (point-min), so the value refers | ||
| 904 | to the contents of the accessible portion of the buffer." | ||
| 903 | (let ((opoint (or pos (point))) start) | 905 | (let ((opoint (or pos (point))) start) |
| 904 | (save-excursion | 906 | (save-excursion |
| 905 | (goto-char (point-min)) | 907 | (goto-char (point-min)) |