From: Eli Zaretskii <eliz@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: 43469-done@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 [thread overview]
Message-ID: <83v9g91tpb.fsf@gnu.org> (raw)
In-Reply-To: <8EBE71CC-3AA0-4680-92FE-6B91F4E0773A@gmail.com> (message from Yuan Fu on Sat, 19 Sep 2020 14:33:03 -0400)
> 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.
next prev parent reply other threads:[~2020-09-19 18:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 16:03 bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set Yuan Fu
2020-09-17 17:32 ` Eli Zaretskii
2020-09-18 17:05 ` Yuan Fu
2020-09-18 19:22 ` Eli Zaretskii
2020-09-19 18:33 ` Yuan Fu
2020-09-19 18:56 ` Eli Zaretskii [this message]
2020-09-19 18:33 ` bug#43469: Fwd: " Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83v9g91tpb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=43469-done@debbugs.gnu.org \
--cc=casouri@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.