GNU bug report logs - #55847
29.0.50; line-number-at-pos ignores absolute parameter when checking position range

Previous Next

Package: emacs;

Reported by: Antoine Kalmbach <ane <at> iki.fi>

Date: Wed, 8 Jun 2022 11:45:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Antoine Kalmbach <ane <at> iki.fi>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: eliz <at> gnu.org, 55847 <at> debbugs.gnu.org
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 <at> 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




This bug report was last modified 2 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.