GNU bug report logs -
#55847
29.0.50; line-number-at-pos ignores absolute parameter when checking position range
Previous Next
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
Message #19 received at 55847 <at> debbugs.gnu.org (full text, mbox):
Antoine Kalmbach <ane <at> iki.fi> writes:
> If the buffer is narrowed, the return value by default counts the lines
> from the beginning of the accessible portion of the buffer. But if the
> second optional argument ABSOLUTE is non-nil, the value counts the lines
> from the absolute start of the buffer, disregarding the narrowing.
>
> Hence I would assume that if absolute is non-nil the call to
> line-number-at-pos should work even if the buffer is narrowed, instead
> of throwing an error.
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.
However, this is a behavioural change from the previous version of the
function, so I think I'll adjust it to work as before.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.