From: Eli Zaretskii <eliz@gnu.org>
To: Ihor Radchenko <yantar92@posteo.net>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 64986@debbugs.gnu.org
Subject: bug#64986: 30.0.50; window-text-pixel-size sometimes returns 0 width when called from temporary buffer
Date: Thu, 03 Aug 2023 11:55:35 +0300 [thread overview]
Message-ID: <83fs50y06w.fsf@gnu.org> (raw)
In-Reply-To: <87edkmq523.fsf@localhost> (message from Ihor Radchenko on Tue, 01 Aug 2023 13:13:08 +0000)
> From: Ihor Radchenko <yantar92@posteo.net>
> Cc: 64986@debbugs.gnu.org
> Date: Tue, 01 Aug 2023 13:13:08 +0000
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > This tricky part is why we now have buffer-text-pixel-size: it takes
> > care of making the buffer "temporarily shown" in the window. So I
> > believe you should use that function instead.
>
> Indeed. We previously used `set-window-buffer' as in shr.el, but that
> felt like an awkward workaround because it can sometimes err when
> selected-window is dedicated.
>
> I am wondering if `shr-pixel-buffer-width' and `shr-pixel-column' should
> also use `buffer-text-pixel-size'. The `(set-window-dedicated-p nil
> nil)` is not nice as it could override user customization.
Probably. Patches to that effect are welcome.
prev parent reply other threads:[~2023-08-03 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 7:47 bug#64986: 30.0.50; window-text-pixel-size sometimes returns 0 width when called from temporary buffer Ihor Radchenko
2023-08-01 12:07 ` Eli Zaretskii
2023-08-01 13:13 ` Ihor Radchenko
2023-08-03 8:55 ` Eli Zaretskii [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fs50y06w.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64986@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=yantar92@posteo.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).