Subject: Re: bug#51995: 29.0.50; `string-pixel-width' depends on the current window width

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 20 Nov 2021 10:35:56 +0100

martin rudalics <[email-masked]> writes:

>   Since calculating the text height of a large buffer can take some time,
>   it makes sense to specify this argument if the size of the buffer is
>   large or unknown.
>
> So any such fix has to be made in 'string-pixel-width' itself.

Yup.  Finding an appropriate limit to use here isn't trivial, though.
But I guess we could just use something very large, or add an optional
parameter to 'string-pixel-width' to allow the caller to control it...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no