all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Al Haji-Ali <abdo.haji.ali@gmail.com>
Cc: 71601@debbugs.gnu.org
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	[thread overview]
Message-ID: <86le33y0oc.fsf@mail.linkov.net> (raw)
In-Reply-To: <m2y174q8au.fsf@gmail.com> (Al Haji-Ali's message of "Mon, 17 Jun 2024 09:31:53 +0100")

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	other threads:[~2024-06-17 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-16 22:58 bug#71601: 29.1; force-mode-line-update does not refresh names of tab-lines Al Haji-Ali
2024-06-17  6:11 ` Juri Linkov
2024-06-17  8:31   ` Al Haji-Ali
2024-06-17 16:49     ` Juri Linkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86le33y0oc.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=71601@debbugs.gnu.org \
    --cc=abdo.haji.ali@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.