From: Rodrigo Morales <me@rodrigomorales.site>
To: <help-gnu-emacs@gnu.org>
Subject: [Question] Which function is used internally to update the tab-bar?
Date: Sun, 31 Dec 2023 21:09:35 +0300 [thread overview]
Message-ID: <ca9a8523f9e961e0176b73eb92e55865@rodrigomorales.site> (raw)
I'm learning how to customize tab-bar. I want to know the function
that is used for updating the content of the tab-bar.
I've noticed that the content of the tab-bar is updated whenever I call
=other-window= (by default, bound to =C-x o=).I wrote the following
function which helped me identify the exact times at which the tab-bar
is updated.
#+BEGIN_SRC emacs-lisp
(defun my/f ()
(format-time-string "%H:%M:%S.%N"))
(setq tab-bar-format
'(tab-bar-format-tabs
tab-bar-format-align-right
tab-bar-format-global
my/f))
#+END_SRC
While trying to find the relevant function, I found the function
tab-bar--update-tab-bar-lines. However, when I evaluate this sexp
(tab-bar--update-tab-bar-lines), the tab-bar of the current frame is not
updated.
next reply other threads:[~2023-12-31 18:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-31 18:09 Rodrigo Morales [this message]
2024-01-01 3:05 ` [Question] Which function is used internally to update the tab-bar? Rodrigo Morales
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca9a8523f9e961e0176b73eb92e55865@rodrigomorales.site \
--to=me@rodrigomorales.site \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).