|
| From: | Stefan Monnier |
| Subject: | Re: [patch] add interactive browse of revisions from vc *Annotate* buffers |
| Date: | 21 Jan 2004 09:15:10 -0500 |
| User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> (defun line-at-pos (&optional pos)
> "Return buffer line number and narrowed line number at position POS.
> If POS is nil, use current buffer location.
> Return value is a cons (line-number . narrowed-line-number)."
I suggest to only return narrowed-line-number (i.e. ignore narrowing).
After all, most/all functions are expected to ignore narrowing unless they
specifically need to know about it.
`what-line' can still make use of such a function by doing the widening
itself like it used to (and use the same optimization you suggested).
Stefan
| [Prev in Thread] | Current Thread | [Next in Thread] |