From unknown Thu Aug 21 12:12:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Resent-From: Lars Ljung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Nov 2021 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 52019@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16375016325301 (code B ref -1); Sun, 21 Nov 2021 13:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Nov 2021 13:33:52 +0000 Received: from localhost ([127.0.0.1]:44393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1momye-0001NR-GQ for submit@debbugs.gnu.org; Sun, 21 Nov 2021 08:33:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:57440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1momyX-0001NC-MN for submit@debbugs.gnu.org; Sun, 21 Nov 2021 08:33:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1momyX-0007nQ-9e for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 08:33:45 -0500 Received: from smtp-out2.simply.com ([94.231.106.230]:50327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1momyV-000333-6l for bug-gnu-emacs@gnu.org; Sun, 21 Nov 2021 08:33:44 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4Hxrvj4b8qz67t9 for ; Sun, 21 Nov 2021 14:33:37 +0100 (CET) Received: from [192.168.1.203] (c-9e92e253.01-381-73746f46.bbcust.telenor.se [83.226.146.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.simply.com (Simply.com) with ESMTPSA id 4Hxrvj3N4pz67sy for ; Sun, 21 Nov 2021 14:33:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matholka.se; s=unoeuro; t=1637501617; bh=bYO3RRKXTdhDRT0Y5GiM9iIYKOdtpjooWgGy71NhIck=; h=Date:To:From:Subject; b=iRnFHlHZjs5NfYkTr8As4q8kGiIDHtGfd5h/0k+3hI8GXoVjKWSosU85HAxVnSIxa lqUsf22o0fteGt0w1yQuEJl8EQrLgi31tixCT+msF5TxaY1nJVu1YqrvoD6H3SYB6E 1EczFF5IXHwSf5k6m1oyLj+aZBwrotVSY1z6TqUM= Message-ID: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> Date: Sun, 21 Nov 2021 14:33:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-GB From: Lars Ljung Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=94.231.106.230; envelope-from=lars@matholka.se; helo=smtp-out2.simply.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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. The name of that tab will be updated when you switch to it. This bug is also present on Emacs 27 and on master. From unknown Thu Aug 21 12:12:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed 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 X-GNU-PR-Keywords: To: Lars Ljung Cc: 52019@debbugs.gnu.org Received: via spool by 52019-submit@debbugs.gnu.org id=B52019.16375166837258 (code B ref 52019); Sun, 21 Nov 2021 17:45:02 +0000 Received: (at 52019) by debbugs.gnu.org; 21 Nov 2021 17:44:43 +0000 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 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 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) From: Juri Linkov Organization: LINKOV.NET References: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> Date: Sun, 21 Nov 2021 19:30:13 +0200 In-Reply-To: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> (Lars Ljung's message of "Sun, 21 Nov 2021 14:33:37 +0100") Message-ID: <86h7c5shqm.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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. From unknown Thu Aug 21 12:12:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52019: 28.0.60; tab-bar is not updated when buffer is killed Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Nov 2021 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ljung Cc: 52019@debbugs.gnu.org Received: via spool by 52019-submit@debbugs.gnu.org id=B52019.16376059548521 (code B ref 52019); Mon, 22 Nov 2021 18:33:02 +0000 Received: (at 52019) by debbugs.gnu.org; 22 Nov 2021 18:32:34 +0000 Received: from localhost ([127.0.0.1]:49107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpE7G-0002DD-2u for submit@debbugs.gnu.org; Mon, 22 Nov 2021 13:32:34 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpE7C-00028G-FO; Mon, 22 Nov 2021 13:32:33 -0500 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B623EE0006; Mon, 22 Nov 2021 18:32:22 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <01bd8ba6-0fb7-4ff4-dcc4-85e4b344df6e@matholka.se> <86h7c5shqm.fsf@mail.linkov.net> Date: Mon, 22 Nov 2021 20:30:30 +0200 In-Reply-To: <86h7c5shqm.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 21 Nov 2021 19:30:13 +0200") Message-ID: <86lf1g11ru.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 52019 wontfix close 52019 29.0.50 quit >> 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. The same problem exists with all other uses of window-configuration. One example: the desktop saves all windows with their buffers. If a file was deleted before restoring the desktop, or a buffer saved to the desktop was non-persistent, then the desktop just deletes the window where the old buffer was displayed, or replaces the old buffer in the window with some other random buffer. This loses the window layout carefully created by the user. So instead of replacing the name of the killed buffer in the tab name with some other random buffer name, a more proper solution is to keep some placeholder in the window where the buffer was displayed. This is a bigger task, so a new request could be created to implement it.