diff options
| author | Richard M. Stallman | 2006-08-20 12:16:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-08-20 12:16:58 +0000 |
| commit | 79ffb765f25e6e1bc3c6664fcd24bf7edb3b2d32 (patch) | |
| tree | 06e9ba8df252816c4309df960f3079e958c5422c | |
| parent | 171d328e8dd84e6d9e8d168e4e91fe989b65b138 (diff) | |
| download | emacs-79ffb765f25e6e1bc3c6664fcd24bf7edb3b2d32.tar.gz emacs-79ffb765f25e6e1bc3c6664fcd24bf7edb3b2d32.zip | |
(line-number-at-pos): Doc fix.
| -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)) |