GNU bug report logs - #43469
28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Thu, 17 Sep 2020 16:04:01 UTC

Severity: normal

Found in version 28.0.50

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 43469-done <at> debbugs.gnu.org
Subject: bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set
Date: Sat, 19 Sep 2020 21:56:32 +0300
> From: Yuan Fu <casouri <at> gmail.com>
> Date: Sat, 19 Sep 2020 14:33:03 -0400
> Cc: 43469 <at> debbugs.gnu.org
> 
> >  This function exists to allow Lisp programs to adjust the dimensions
> >  of WINDOW to the buffer text it needs to display.
> > 
> > When you want to know how wide a window you need for displaying some
> > text, you do want the line-prefix part accounted for.
> 
> I see. I managed to use (window-text-pixel-size nil (point) (point)) to calculate the prefix width and subtract it out. Thanks.

Thanks, so I'm closing this bug.




This bug report was last modified 4 years and 246 days ago.

Previous Next


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