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


Message #25 received at 55847 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Antoine Kalmbach <ane <at> iki.fi>
Cc: eliz <at> gnu.org, 55847 <at> debbugs.gnu.org
Subject: Re: bug#55847: 29.0.50; line-number-at-pos ignores absolute
 parameter when checking position range
Date: Thu, 09 Jun 2022 14:43:02 +0200
Antoine Kalmbach <ane <at> iki.fi> writes:

> 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. 

It's slightly ambiguous.

I've now changed the function to work in Emacs 29 as in earlier versions.

-- 
(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.