GNU bug report logs - #71601
29.1; force-mode-line-update does not refresh names of tab-lines

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Sun, 16 Jun 2024 22:59:02 UTC

Severity: normal

Found in version 29.1

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 71601 <at> debbugs.gnu.org (full text, mbox):

From: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 71601 <at> debbugs.gnu.org
Subject: Re: bug#71601: 29.1; force-mode-line-update does not refresh names
 of tab-lines
Date: Mon, 17 Jun 2024 09:31:53 +0100
On 17/06/2024, Juri Linkov wrote:
>
> 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`).

-- Al




This bug report was last modified 1 year and 34 days ago.

Previous Next


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