GNU bug report logs - #41125
28.0.50; Fwindow_text_pixel_size uses FETCH_CHAR (charpos)

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Thu, 7 May 2020 11:56:02 UTC

Severity: normal

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>, Pip Cet <pipcet <at> gmail.com>
Cc: 41125 <at> debbugs.gnu.org
Subject: Re: bug#41125: 28.0.50; Fwindow_text_pixel_size uses FETCH_CHAR
 (charpos)
Date: Fri, 8 May 2020 09:18:27 +0200
>> which cannot possibly be correct: FETCH_CHAR takes a byte position,
>> not a character position, but BEGV and ZV are measured in characters.
>
> Ouch!  Thanks.  Does the patch below look good?

It does.  Thanks for fixing yet another of my blunders in this function.
And thanks to Pip for catching it.

martin




This bug report was last modified 5 years and 12 days ago.

Previous Next


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