Subject: Re: bug#59311: 29.0.50; tab-bar global-mode-string affected by global-display-line-numbers

From: Eli Zaretskii <[email-masked]>
Date: Fri, 18 Nov 2022 13:48:31 +0200

> From: Juanma Barranquero <[email-masked]>
> Date: Fri, 18 Nov 2022 10:46:33 +0100
> Cc: Juri Linkov <[email-masked]>, [email-masked], [email-masked]
> 
> On Fri, Nov 18, 2022 at 9:43 AM Eli Zaretskii <[email-masked]> wrote:
> 
> > That's a possibility, but you may find that some Lisp code somewhere
> > assumes line-numbers are ON in a temporary buffer, e.g. because it
> > wants to measure something that is directly related to line-numbers.
> 
> That's kind of unlikely, and if it happens, using your own reasoning that Lisp code should set line-numbers
> explicitly.

Unlikely or not, string-pixel-with is a function that must not fail
this way.  It must be rock-solid, even if the unthinkable happens.