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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Gabriel <gabriel376 <at> hotmail.com>
Subject: bug#59620: closed (Re: bug#59620: 29.0.50; Wrong global-mode-string
 position in tab-bar + emacs -nw)
Date: Fri, 02 Dec 2022 08:02:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 59620 <at> debbugs.gnu.org.

-- 
59620: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59620
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gabriel376 <at> hotmail.com, 59620-done <at> debbugs.gnu.org
Subject: Re: bug#59620: 29.0.50; Wrong global-mode-string position in
 tab-bar + emacs -nw
Date: Fri, 02 Dec 2022 09:59:57 +0200
>> Avoiding the 'right' part in align-to has such a drawback that while
>> resizing the frame the position of the aligned element is not updated
>> immediately.  It's updated only when display-time refreshes the time on
>> the tab bar.  The position relative to the right edge has no such problem.
>> So better to leave the 'right' part on GUI frames, and switch to counting
>> from the left only on TTY frames where frames are resized less often:
>
> 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.

[Message part 3 (message/rfc822, inline)]
From: Gabriel <gabriel376 <at> hotmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Wrong global-mode-string position in tab-bar + emacs -nw
Date: Sat, 26 Nov 2022 18:46:08 -0300
[Message part 4 (text/plain, inline)]
Severity: bug

Description:

The global-mode-string is wrongly positioned in tab-bar when using
"emacs -nw" and multiple windows.  The bug only happens with emacs -nw.

Steps:

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.

[one-window.png (image/png, attachment)]
[bug.png (image/png, attachment)]
[minibuffer-focus.png (image/png, attachment)]
[Message part 8 (text/plain, inline)]
---
Gabriel

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

Previous Next


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