Subject: Re: bug#59620: 29.0.50; Wrong global-mode-string position in tab-bar + emacs -nw

From: Eli Zaretskii <[email-masked]>
Date: Fri, 02 Dec 2022 17:01:56 +0200

> From: Juri Linkov <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Fri, 02 Dec 2022 09:59:57 +0200
> 
> > That would require you to make sure this code always runs in the context of
> > the tab-bar (pseudo)window.  If that can be ensured, fine.
> 
> Since this can't be ensured, I pushed a simpler patch to emacs-29,
> and closed.

Thanks, but I think the code needs to use window-system the function, not
the variable, so that you could ask about the currently-selected frame.  We
generally don't want to use window-system the variable too much.