bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49806: 28.0.50; tab-bar-format with global mode string doesn't alway


From: Juri Linkov
Subject: bug#49806: 28.0.50; tab-bar-format with global mode string doesn't always remove global-mode-string
Date: Sun, 01 Aug 2021 22:48:06 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

tags 49806 fixed
close 49806 28.0.50
thanks

> In GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 
> 1.16.0, Xaw scroll bars)
>  of 2021-07-27 built on icterid
> Repository revision: fb27708f51fb0fd60cd00cd8ea7bfc9248eb0040
> Repository branch: feature/rcirc-update

Maybe your branch is not updated to the recent master?
We fixed this a week ago.  But it would be nice
to find such solution that would avoid the need
to update tab-bar--define-keys manually every time
when the default value of mode-line-misc-info changes:

> When I change this to
>
>         (member '(global-mode-string ("" global-mode-string))
>                                  mode-line-misc-info)
>
> reflecting the default value of mode-line-misc-info, it works. 
>
> I am uncertain if this is intentional, or if even 
>
>         (assq 'global-mode-string mode-line-misc-info)
>
> would do the job.

The intention was to check if mode-line-misc-info contains
the default value of 'global-mode-string', and update
only the default value.  But (assq 'global-mode-string mode-line-misc-info)
will be called every time, even when the value was already changed.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]