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: Mon, 22 Nov 2021 20:16:46 +0200 Organization: LINKOV.NET Message-ID: <86bl2c3vjl.fsf@mail.linkov.net> References: <86r1bdxvt8.fsf@mail.linkov.net> <86a6i0o8dj.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3007"; 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 Mon Nov 22 19:18:11 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 1mpDtL-0000dd-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Nov 2021 19:18:11 +0100 Original-Received: from localhost ([::1]:56768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpDtK-0007b5-8X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Nov 2021 13:18:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpDtC-0007ah-AB for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2021 13:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpDtC-0005wB-1j for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2021 13:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpDtB-0008Et-Jy for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2021 13:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Nov 2021 18:18:01 +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.163760505431615 (code B ref 51935); Mon, 22 Nov 2021 18:18:01 +0000 Original-Received: (at 51935) by debbugs.gnu.org; 22 Nov 2021 18:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:49079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpDsk-0008Dq-BQ for submit@debbugs.gnu.org; Mon, 22 Nov 2021 13:17:34 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:43053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpDsi-0008DY-N0; Mon, 22 Nov 2021 13:17:33 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id D932020008; Mon, 22 Nov 2021 18:17:24 +0000 (UTC) In-Reply-To: (Carlos Pita's message of "Sat, 20 Nov 2021 00:17:22 -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:220631 Archived-At: close 51935 29.0.50 thanks > Depending on the configured completion framework C-x t RET will show > candidates in order or not, but the interpretation of the suffix as a > position seems relatively clear to me even in the unordered case, if > not anything else at least it's an indication that there are > additional tabs with the same name. Actually, not only tab-bar-switch-to-tab has such function signature that uses the argument NAME, but also other functions such as tab-bar-close-tab-by-name and tab-bar-rename-tab-by-name. All they expect a unique name of the tab. There is no way to distinguish tabs with the same name. In practice, this problem doesn't exist because in this case the users just rename the tab to a unique name. To make is more easy to rename the tab, I improved 'C-x t RET' in master that now it creates a new tab when the provided tab name doesn't exist. So instead of using 'C-x t 2' to create a new tab, you can use 'C-x t RET new-tab-name RET', exactly in the same way as 'C-x b new-buffer RET' can be used to create a new buffer.