GNU bug report logs - #59620
29.0.50; Wrong global-mode-string position in tab-bar + emacs -nw

Previous Next

Package: emacs;

Reported by: Gabriel <gabriel376 <at> hotmail.com>

Date: Sat, 26 Nov 2022 21:52:02 UTC

Severity: normal

Found in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gabriel <gabriel376 <at> hotmail.com>
Cc: 59620 <at> debbugs.gnu.org
Subject: bug#59620: 29.0.50; Wrong global-mode-string position in tab-bar + emacs -nw
Date: Sun, 27 Nov 2022 08:19:57 +0200
> From: Gabriel <gabriel376 <at> hotmail.com>
> Date: Sat, 26 Nov 2022 18:46:08 -0300
> 
> 1) emacs -Q -nw (master "af545234314601ba3dcd8bf32e0d9b46e1917f79")
> 
> 2) Eval the following to add display-time-mode right-aligned to tab-bar:
> 
> (progn
>   (display-time-mode 1)
>   (setopt tab-bar-format '(tab-bar-format-tabs-groups
>                            tab-bar-separator
>                            tab-bar-format-align-right
>                            tab-bar-format-global))
>   (tab-bar-mode 1))
> 
> 3) Split window right: C-x 3
> 
> Result: the global-mode-string will be wrongly positioned.  It expected
> to be right-aligned to the current frame, but it's right-aligned to the
> left window.  The position is correct while minibuffer has focus.  See
> attached images.

Looks like tab-bar-format-align-right is evaluated with the wrong window
being the selected one: it should use the tab-bar pseudo-window to do what
you expect.




This bug report was last modified 2 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.