From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62575: 29.0.60; Tabs are not showing the right names of the buffers Date: Sat, 01 Apr 2023 17:07:05 +0300 Message-ID: <83sfdjy9va.fsf@gnu.org> References: <7f7b17d6-63e2-d7fc-1091-802f972f9a62@freenet.de> <83cz4o17tp.fsf@gnu.org> <67687ee4-089d-7997-f9a3-afde7be8b05e@freenet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62575@debbugs.gnu.org To: Claudio Grondi , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 01 16:07:19 2023 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 1pibt1-0008ig-ES for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Apr 2023 16:07:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pibsn-0008Fn-Ja; Sat, 01 Apr 2023 10:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pibsk-0008Fd-Sz for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 10:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pibsk-0005xY-Jl for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 10:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pibsk-0003Of-5z for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 10:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2023 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62575 X-GNU-PR-Package: emacs Original-Received: via spool by 62575-submit@debbugs.gnu.org id=B62575.168035801913047 (code B ref 62575); Sat, 01 Apr 2023 14:07:02 +0000 Original-Received: (at 62575) by debbugs.gnu.org; 1 Apr 2023 14:06:59 +0000 Original-Received: from localhost ([127.0.0.1]:38351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pibsh-0003ON-IJ for submit@debbugs.gnu.org; Sat, 01 Apr 2023 10:06:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pibsf-0003O8-TM for 62575@debbugs.gnu.org; Sat, 01 Apr 2023 10:06:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pibsZ-0005rK-DB; Sat, 01 Apr 2023 10:06:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=OnMbzVoK2+SvntESxrTN5WQl2vcwPNy/EFXmw+8ehvI=; b=YrycvKYhGpMm1/0CVZ70 eakb7XoiiNlpsOvZoV/n4B0yjuGSUr6n8AussBmmJxnsgEf5gZ2lfMeZFyVFCCRtfGPlvYHmnjuMW KlR6isHo0aLH+pMEwaCeLFN8MLozCK77ZBiv+UnjBzVSTC1sb2d3osyKDMMG4Q+zI04TkHQ2wMtFR WPFUK8cr3aoXUwcHdicJXGseDEBM+RykaPOk1zx4y6XJJi8Uo3cX7/NfgWWqNcNNAdaadK90TiUnl LFnj+UNJZ8qJrh/ElkzW3vPpB7pyWG/j6fu+VfQhRG9jeAkGsuO1orUPC7y7DMrwHAq6k2PhsJRgR agS6DyaD/nBfMw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pibsY-0005q5-Bi; Sat, 01 Apr 2023 10:06:50 -0400 In-Reply-To: <67687ee4-089d-7997-f9a3-afde7be8b05e@freenet.de> (message from Claudio Grondi on Sat, 1 Apr 2023 13:19:51 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259052 Archived-At: > Date: Sat, 1 Apr 2023 13:19:51 +0200 > Cc: 62575@debbugs.gnu.org > From: Claudio Grondi > > Below the steps required to reproduce the bug: > > 1. ~ $ emacs -Q > 2. Menu -> Options -> Show/Hide -> Tab Bar (gives Tab *scratch*) > 3. 1x click on rightmost * in the Tab Bar to create a new Tab (gives 2x > *scratch* Tabs) > 4. With the rightmost (second) Tab open ~/.emacs (gives 1x *scratch* and > 1x .emacs Tabs) > 5. 2x click on rightmost * in the Tab Bar to create twp new Tabs (gives > 1x *scratch* and 3x .emacs Tabs) > 6. with rightmost Tab active kill the .emacs buffer [C-x k] (the Tabs > label turns  to *scratch the other two Tabs labeled .emacs keep their > labels, so there are 1x *scratch*, 2x .emacs, 1x *scratch* Tabs) > 7. *click the second Tab labeled* .emacs' (result: the label of the Tab > turns to *Messages*. the Tab Bar shows *scratch* *Messages* .emacs > *scratch* ) > > The bug: the third Tab still keeps its  .emacs  label, the click on the > second Tab labeled  .emacs  did not show the .emacs file, but the buffer > *Messages*. After looking at the code, I'm not sure this is a bug. The tab names are just labels, although they are conveniently set to the name of the buffer in the window to be selected when the tab is current. But otherwise they are just labels. When you click on the tab, its name is updated to reflect the buffer shown in the selected window, so I think Emacs is behaving correctly, although it might be a bit unexpected. Juri, am I right? If not, where is the code that's supposed to update the labels when some buffers or windows are deleted or renamed?