all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Aaron Jensen <aaronjensen@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: Eli Zaretskii <eliz@gnu.org>, 60340@debbugs.gnu.org
Subject: bug#60340: 29.0.60; force-mode-line-update does not update tab line
Date: Thu, 29 Dec 2022 17:46:07 -0500	[thread overview]
Message-ID: <CAHyO48yr7qnH3-NwGtLAwcCXvs8k4zJReHdLd2L+fnq7TYGPeA@mail.gmail.com> (raw)
In-Reply-To: <86v8lvo1un.fsf@mail.linkov.net>

On Wed, Dec 28, 2022 at 12:50 PM Juri Linkov <juri@linkov.net> wrote:
>
> >> (defun tab-line-cache-key-default (_tabs)
> >>   (list (random 1000)))
> >
> > Thank you for the pointer! I can do this and it works great:
> >
> > (set-window-parameter nil 'tab-line-cache nil)
> > (force-mode-line-update)
>
> Maybe this call is straightforward enough not to warrant a new special
> function to clear the cache.  Anyway, your complex use case prompted
> the need to allow more flexibility in tab-line-cache-key-function
> that now I improved as well.

A function may be useful just for discoverability purposes. At the
very least, it may make sense to add additional documentation to
`tab-line-tab-name-function` that its result is effectively cached.

Thanks,

Aaron





  reply	other threads:[~2022-12-29 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-26 16:40 bug#60340: 29.0.60; force-mode-line-update does not update tab line Aaron Jensen
2022-12-26 17:04 ` Eli Zaretskii
2022-12-26 17:55   ` Aaron Jensen
2022-12-28 17:49     ` Juri Linkov
2022-12-29 22:46       ` Aaron Jensen [this message]
2022-12-26 17:34 ` Juri Linkov

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=CAHyO48yr7qnH3-NwGtLAwcCXvs8k4zJReHdLd2L+fnq7TYGPeA@mail.gmail.com \
    --to=aaronjensen@gmail.com \
    --cc=60340@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=juri@linkov.net \
    /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.