bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55847: 29.0.50; line-number-at-pos ignores absolute parameter when c


From: Antoine Kalmbach
Subject: bug#55847: 29.0.50; line-number-at-pos ignores absolute parameter when checking position range
Date: Thu, 09 Jun 2022 14:19:29 +0300

Lars Ingebrigtsen <larsi@gnus.org> writes:

> This says that it's counting lines from the absolute start of the
> buffer, not that it's able to report data about positions outside of the
> region.  I think that worked "by accident" in the old version of the
> function.

Right, so as long as pos is within the narrowed region, but the line
number is counted from the absolute beginning of the buffer.  Well,
I would understand "disregarding narrowing" as doing an implicit
(save-restriction (widen) ...) anyway. 

-- 
Antoine Kalmbach





reply via email to

[Prev in Thread] Current Thread [Next in Thread]