all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#59311: 29.0.50; tab-bar global-mode-string affected by global-display-line-numbers
@ 2022-11-16 16:10 Gabriel
  2022-11-18  7:15 ` Juri Linkov
  0 siblings, 1 reply; 10+ messages in thread
From: Gabriel @ 2022-11-16 16:10 UTC (permalink / raw)
  To: 59311

[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]

Description:

The global-mode-string is incorrectly right-aligned in the tab-bar when
global-display-line-numbers-mode is enabled.  The issue actually depends
on the order of execution of global-display-line-numbers-mode.  I could
not find an offending commit, so I am not sure for how long this issue
exists.  I am currently debugging the Emacs internals to find the root
cause.

Steps:

1) emacs -Q (master 690f7ac86ad9a9d714b1107d05c5e856a43bb18d)

2) Eval the following to enable global-display-line-numbers-mode:

(progn
  (global-display-line-numbers-mode 1))

3) Eval the following to enable display-time-mode, which at this moment
will be displayed in the mode-line:

(progn
  (setopt display-time-interval 1
          display-time-string-forms '((format-time-string "%d/%m/%Y %H:%M:%S" now)))
  (display-time-mode 1))

4) Eval the following to add global-mode-line to tab-bar, right-aligned:

(progn
  (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))

Result: the global-mode-line is displayed in the tab-bar, right-aligned,
as expected.

5) Run step 2) again

Result: the global-mode-line is displayed in the tab-bar, right-aligned,
with an incorrect padding on the right. See attached video.


[-- Attachment #2: bug.mp4 --]
[-- Type: video/mp4, Size: 533604 bytes --]

[-- Attachment #3: Type: text/plain, Size: 13 bytes --]


---
Gabriel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-11-20 18:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16 16:10 bug#59311: 29.0.50; tab-bar global-mode-string affected by global-display-line-numbers Gabriel
2022-11-18  7:15 ` Juri Linkov
2022-11-18  8:42   ` Eli Zaretskii
2022-11-18  9:46     ` Juanma Barranquero
2022-11-18 11:48       ` Eli Zaretskii
2022-11-19 19:03     ` Juri Linkov
2022-11-19 19:46       ` Eli Zaretskii
2022-11-20  8:20         ` Juri Linkov
2022-11-20  8:36           ` Eli Zaretskii
2022-11-20 18:02             ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.