Subject: Re: bug#55847: 29.0.50; line-number-at-pos ignores absolute parameter when checking position range

From: Antoine Kalmbach <[email-masked]>
Date: Thu, 09 Jun 2022 14:19:29 +0300

Lars Ingebrigtsen <[email-masked]> 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