[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when
From: |
Eli Zaretskii |
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@gmail.com>
> Date: Sat, 19 Sep 2020 14:33:03 -0400
> Cc: 43469@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.
bug#43469: Fwd: bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set, Yuan Fu, 2020/09/19