From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Date: Sun, 21 Nov 2021 19:30:13 +0200 Organization: LINKOV.NET Message-ID: <86h7c5shqm.fsf@mail.linkov.net> References: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22104"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52019@debbugs.gnu.org To: Lars Ljung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 21 18:45:38 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moquH-0005aa-TQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 18:45:37 +0100 Original-Received: from localhost ([::1]:35066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moquF-0003T6-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Nov 2021 12:45:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moqtp-0003Ql-0P for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 12:45:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moqti-0003od-Rw for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 12:45:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moqti-0001u8-Q5 for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 12:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Nov 2021 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52019 X-GNU-PR-Package: emacs Original-Received: via spool by 52019-submit@debbugs.gnu.org id=B52019.16375166837258 (code B ref 52019); Sun, 21 Nov 2021 17:45:02 +0000 Original-Received: (at 52019) by debbugs.gnu.org; 21 Nov 2021 17:44:43 +0000 Original-Received: from localhost ([127.0.0.1]:45928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moqtP-0001sy-JH for submit@debbugs.gnu.org; Sun, 21 Nov 2021 12:44:43 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:48515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moqtM-0001si-Io for 52019@debbugs.gnu.org; Sun, 21 Nov 2021 12:44:41 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 2EB65240004; Sun, 21 Nov 2021 17:44:32 +0000 (UTC) In-Reply-To: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> (Lars Ljung's message of "Sun, 21 Nov 2021 14:33:37 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220574 Archived-At: > 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.