mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(line-number-at-pos): Doc fix.
This commit is contained in:
parent
171d328e8d
commit
79ffb765f2
1 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue