GNU bug report logs - #60340
29.0.60; force-mode-line-update does not update tab line

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Mon, 26 Dec 2022 16:41:01 UTC

Severity: normal

Found in version 29.0.60

Done: Aaron Jensen <aaronjensen <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 60340 <at> debbugs.gnu.org
Subject: bug#60340: 29.0.60; force-mode-line-update does not update tab line
Date: Mon, 26 Dec 2022 19:34:04 +0200
> (defun random-name (_buffer &optional _buffers)
>   (format "tab %d" (random 1000)))
> (setq tab-line-tab-name-function #'random-name)
> (tab-line-mode)
>
> Then, eval:
>
> (force-mode-line-update)
>
> Every time that evals, I believe you should see the tab name update, but
> it does not. This makes it impossible to change tab names without
> changing buffer names as far as I can tell. There is likely something
> I'm missing, but per the docs, I believe force-mode-line-update should
> update tab lines. Passing `t' as ALL does not work either.

Does it help to override the cache key with something like this?

(defun tab-line-cache-key-default (_tabs)
  (list (random 1000)))




This bug report was last modified 2 years and 206 days ago.

Previous Next


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