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#51935: 29.0.50; tab-switch hides identically named tabs Date: Thu, 18 Nov 2021 19:32:10 +0200 Organization: LINKOV.NET Message-ID: <86r1bdxvt8.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17233"; 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: 51935@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 18:34:36 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 1mnlIy-0004Ft-HK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 18:34:36 +0100 Original-Received: from localhost ([::1]:55814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnlIx-0000zF-DA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 12:34:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnlIR-0000GS-Lu for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnlIR-00008l-DN for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:34:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnlIR-0006Yf-5d for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:34:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 17:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51935 X-GNU-PR-Package: emacs Original-Received: via spool by 51935-submit@debbugs.gnu.org id=B51935.163725681925124 (code B ref 51935); Thu, 18 Nov 2021 17:34:03 +0000 Original-Received: (at 51935) by debbugs.gnu.org; 18 Nov 2021 17:33:39 +0000 Original-Received: from localhost ([127.0.0.1]:37094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnlI2-0006X8-Hh for submit@debbugs.gnu.org; Thu, 18 Nov 2021 12:33:38 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:35119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnlI0-0006Wa-8Q for 51935@debbugs.gnu.org; Thu, 18 Nov 2021 12:33:37 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 215F91BF209; Thu, 18 Nov 2021 17:33:28 +0000 (UTC) In-Reply-To: (Carlos Pita's message of "Thu, 18 Nov 2021 03:10:21 -0300") 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:220335 Archived-At: > when one creates a new tab with C-x t 2 or C-x t n it gets the same name > than the current tab. One can rename it but sometimes it's just a quick > tab that isn't worth renaming, or perhaps it's just a different view to > the original content and one is happy with it having the same name than > the original tab, last but not least one might simply forget to rename > it. All these scenarios aren't properly supported by tab-switch (C-x t > RET) since it doesn't disambiguate entries before calling > completing-read, for example by appending a numeric suffix to dups, so > just a single representative of the homonyms set appears in the list. How adding a numeric suffix in completions of tab-switch (C-x t RET) could help to disambiguate the tabs? If there will be such automatically generated completions as "same-buffer<1>", "same-buffer<2>", "same-buffer<3>", there is no way for users to distinguish these tabs. Only manually renaming the tabs to names meaningful to the user will help to disambiguate them, for example, renaming them to "same-buffer", "same-buffer", "same-buffer", etc. The package uniquify.el tries to solve this problem with some low degree of success by trying to provide hints for disambiguating buffer names by adding some parts of their directory names, for example: "same-buffer", "same-buffer". But no such thing is possible for tab names. > OTOH tab-switcher offers to choose between identically named tabs, > but IMO it's not a very convenient UI (somewhat invasive and doesn't > integrate with ordinary minibuffer completion), it's not assigned to a > standard shortcut and it doesn't seem a good idea to me that functions `tab-list' with new mode more like list-buffers is developed in bug#38680 and bug#38624. > named tab-switch and tab-switcher offer different sets of tabs to pick > from. Disambiguation may happen at the moment of tab creation or at the > moment of tab selection, but I think it must happen one way or another As you said this is a temporary situation before the user decides what to do with the tab: either to visit another buffer that will automatically rename the tab, or rename the tab manually, etc. So it's a non-problem.