all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Lars Ljung <lars@matholka.se>
Cc: 52019@debbugs.gnu.org
Subject: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed
Date: Sun, 21 Nov 2021 19:30:13 +0200	[thread overview]
Message-ID: <86h7c5shqm.fsf@mail.linkov.net> (raw)
In-Reply-To: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> (Lars Ljung's message of "Sun, 21 Nov 2021 14:33:37 +0100")

> When a buffer is killed it seams like only the active tab is
> updated. E.g. if a buffer that is shown in another tab is killed from the
> buffer list, then the tab-bar will still show that buffer name.
>
> This bug is also present on Emacs 27 and on master.

This is not a bug, but a feature.  The tabs on the tab-bar
are like bookmarks that represent the state that was current
at the time of switching from the active tab that freezes
its state as a "bookmark".  The tab name should always
show the old buffer names, so the user can see what
buffers were displayed in that tab.

All web browsers work the same way.  When some web server
changes the title of the web page opened in the web browser
in a tab, you need to switch to this tab and reload the page
to see a new title in the tab name.  Would you send such a bug
report to a web browser's bug tracker too?

If you don't like this, you can rename the tab manually to a fixed name.
This is a feature that even web browsers don't have.

Or even better: never kill buffers displayed in another tab,
checking with 'tab-bar-get-buffer-tab' whether the buffer
can be killed, or only buried.

> The name of that tab will be updated when you switch to it.

Ideally, the tab should show some placeholder for the killed buffer
after the user switches to it, so the tab name should keep its
original name.  This would less confusing than showing some random
buffer instead of the killed buffer.  But this is a separate feature
that could be discussed in a separate request.





  reply	other threads:[~2021-11-21 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-21 13:33 bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Lars Ljung
2021-11-21 17:30 ` Juri Linkov [this message]
2021-11-22 18:30   ` 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=86h7c5shqm.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=52019@debbugs.gnu.org \
    --cc=lars@matholka.se \
    /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.