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

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

bug#71601: 29.1; force-mode-line-update does not refresh names of tab-li


From: Juri Linkov
Subject: bug#71601: 29.1; force-mode-line-update does not refresh names of tab-lines
Date: Mon, 17 Jun 2024 19:49:23 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

close 71601 30.0.50
thanks

>> Please try to set `tab-line-cache-key-function` to a function
>> that is a copy of `tab-line-cache-key-default` but where
>> at the end there is appended your addition of (format-time-string "%S"):
>
> Indeed, the tab caching seems to be the issue.  I resolved it slightly
> differently by clearing the cache before calling
> `force-mode-line-update`.
>
> (set-window-parameter nil 'tab-line-cache nil)
> (force-mode-line-update)
>
> whenever I want to update the tab names.
>
> I would suggest that a solution for forcing name updates is included
> in the documentation for `tab-line-tab-name-format-function`, possibly
> defining a new function like
> `tab-line-force-update`.
> Also, shouldn't the cache be cleared in the `:set` code of
> `tab-line-tab-name-format-function`?  (That's where I actually figured
> out that I needed to call `force-mode-line-update`).

Thanks for the suggestion.  So the function `tab-line-force-update`
for the `:set` code is pushed now.





reply via email to

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