* bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option
@ 2022-10-29 7:23 Stefan Kangas
2022-10-29 17:54 ` Juri Linkov
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2022-10-29 7:23 UTC (permalink / raw)
To: 58862; +Cc: Juri Linkov
Severity: minor
In emacs -Q:
0. Evaluate
(setq tab-bar-format '(tab-bar-format-global))
1. M-x tab-bar-mode RET
2. M-x display-time-mode RET
The tab bar is not visible. I expect that it is, just as when I do
this:
(progn
(setq tab-bar-format '(tab-bar-format-global))
(tab-bar-mode 1)
(display-time-mode 1))
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.34, cairo version 1.16.0) of 2022-10-25 built on joffe
Repository revision: 9bfe00dda6b59d9b93eb7a825f6e0868afa1cca3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Debian GNU/Linux bookworm/sid
Configured using:
'configure --with-native-compilation'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option
2022-10-29 7:23 bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option Stefan Kangas
@ 2022-10-29 17:54 ` Juri Linkov
2022-11-12 20:33 ` Stefan Kangas
0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2022-10-29 17:54 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 58862
> Severity: minor
>
> In emacs -Q:
>
> 0. Evaluate
> (setq tab-bar-format '(tab-bar-format-global))
> 1. M-x tab-bar-mode RET
> 2. M-x display-time-mode RET
>
> The tab bar is not visible. I expect that it is, just as when I do
> this:
>
> (progn
> (setq tab-bar-format '(tab-bar-format-global))
> (tab-bar-mode 1)
> (display-time-mode 1))
The tab bar is not visible because an empty tab bar can't be displayed:
(tab-bar-format-list tab-bar-format)
=> ((global menu-item "" ignore))
So it works fine when you change the initialization order to:
0. Evaluate
(setq tab-bar-format '(tab-bar-format-global))
1. M-x display-time-mode RET
2. M-x tab-bar-mode RET
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option
2022-10-29 17:54 ` Juri Linkov
@ 2022-11-12 20:33 ` Stefan Kangas
2022-11-13 18:23 ` Juri Linkov
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2022-11-12 20:33 UTC (permalink / raw)
To: Juri Linkov; +Cc: 58862
Juri Linkov <juri@linkov.net> writes:
>> Severity: minor
>>
>> In emacs -Q:
>>
>> 0. Evaluate
>> (setq tab-bar-format '(tab-bar-format-global))
>> 1. M-x tab-bar-mode RET
>> 2. M-x display-time-mode RET
>>
>> The tab bar is not visible. I expect that it is, just as when I do
>> this:
>>
>> (progn
>> (setq tab-bar-format '(tab-bar-format-global))
>> (tab-bar-mode 1)
>> (display-time-mode 1))
>
> The tab bar is not visible because an empty tab bar can't be displayed:
>
> (tab-bar-format-list tab-bar-format)
> => ((global menu-item "" ignore))
>
> So it works fine when you change the initialization order to:
>
> 0. Evaluate
> (setq tab-bar-format '(tab-bar-format-global))
> 1. M-x display-time-mode RET
> 2. M-x tab-bar-mode RET
Sorry for the late reply here. I guess what surprised me is that the
order mattered here. If you don't think this is a bug, we can close
this. Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option
2022-11-12 20:33 ` Stefan Kangas
@ 2022-11-13 18:23 ` Juri Linkov
2022-11-13 18:30 ` Stefan Kangas
0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2022-11-13 18:23 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 58862
tags 58862 notabug
close 58862 29.0.50
thanks
>> The tab bar is not visible because an empty tab bar can't be displayed:
>>
>> (tab-bar-format-list tab-bar-format)
>> => ((global menu-item "" ignore))
>>
>> So it works fine when you change the initialization order to:
>>
>> 0. Evaluate
>> (setq tab-bar-format '(tab-bar-format-global))
>> 1. M-x display-time-mode RET
>> 2. M-x tab-bar-mode RET
>
> Sorry for the late reply here. I guess what surprised me is that the
> order mattered here. If you don't think this is a bug, we can close
> this. Thanks.
I really have no idea how to display an empty tab-bar.
Fortunately, this is not a frequent problem, just need
to be careful not to enable tab-bar-mode when
the tab-bar is empty. But when someone will get
an idea how to handle it, this could be reopened.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option
2022-11-13 18:23 ` Juri Linkov
@ 2022-11-13 18:30 ` Stefan Kangas
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2022-11-13 18:30 UTC (permalink / raw)
To: Juri Linkov; +Cc: 58862
Juri Linkov <juri@linkov.net> writes:
> I really have no idea how to display an empty tab-bar.
> Fortunately, this is not a frequent problem, just need
> to be careful not to enable tab-bar-mode when
> the tab-bar is empty. But when someone will get
> an idea how to handle it, this could be reopened.
Sounds good to me, and thanks for taking the time to explain things.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-13 18:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-29 7:23 bug#58862: 29.0.50; tab-bar-mode doesn't display after display-time-mode with format option Stefan Kangas
2022-10-29 17:54 ` Juri Linkov
2022-11-12 20:33 ` Stefan Kangas
2022-11-13 18:23 ` Juri Linkov
2022-11-13 18:30 ` Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).