From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74709: [PATCH] Avoid empty unique qualifier in buffer name Date: Fri, 06 Dec 2024 17:34:55 +0100 Message-ID: <87a5d8kbww.fsf@ledu-giraud.fr> References: <87wmgdj99g.fsf@ledu-giraud.fr> <86cyi4lrc9.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34938"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74709@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 06 17:36:35 2024 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 1tJbJh-0008tN-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Dec 2024 17:36:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJbJF-0000kX-CB; Fri, 06 Dec 2024 11:36:05 -0500 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 1tJbJC-0000kF-LN for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:36:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tJbJC-0007RH-D5 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:36:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=pri40H4H5AuxzVA44pmVCc3gMXOAdJxiaDfn2znJoLA=; b=Vporv1vbUSFJOQ5lIEjVOyG6XsQY1h3BxSnvimQP7LiqYw1GJWRNFtee+1oSXVQdC4Y/Re0w2HQSRdNZ5zt4ThEydYecqsYjKmvjgdxFZh+Ep45JVL7/UkMPdXFDXEKKMn3JMNMfCJLBrkHn0qhCTYMupv7aoh0VA8valPzBtA7lyaPbmBJtoNCRgCSZ9hvgESTxLSOdYtLJ7JFNxR448OKPSoJ5fg7SNxVqLrjpDOrnQn7yNfg1jP2PC+NrW7mGPrlxuOLu70jr63IAieg0LX1oEBF00oTD9ZyZX39W9qa83m1VnBATf/qCFO/l2CLF4ZWqQ85wz1FJTtKM0nyUBg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJbJB-00021B-Vq for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2024 16:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74709 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74709-submit@debbugs.gnu.org id=B74709.17335029047363 (code B ref 74709); Fri, 06 Dec 2024 16:36:01 +0000 Original-Received: (at 74709) by debbugs.gnu.org; 6 Dec 2024 16:35:04 +0000 Original-Received: from localhost ([127.0.0.1]:44038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJbIF-0001uE-JX for submit@debbugs.gnu.org; Fri, 06 Dec 2024 11:35:03 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:7686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJbIC-0001tf-Fi for 74709@debbugs.gnu.org; Fri, 06 Dec 2024 11:35:02 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=kTi1Nb9w E5UyUO969R/OBQzONfqGJsNoEe1eOfx6Q+Y=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=vmHPr6rmi72nauzqxW8gmX/ZvPFz0+ ANaLjZGWmdUJ7g5kOmUlKrdz+LtJuI+qF4xaAdeb7ZyBQ4PvWDGzWiCA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=kTi1Nb9wE5UyUO96 9R/OBQzONfqGJsNoEe1eOfx6Q+Y=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=bw/wUaDk08fMpNR37xHqLQaOsDmu4/y5FfuWuc LQT1/qiBbak9N84WzKzswuhOzwIp/RhjEuATTFRf2Y46lz9SNNZ6DMNf3JQXViJx1jz08g rAzSN/AzdDiTmo88Z6Ox8uJdU/Ou3NV3pjpUtMPeGW+V45P4sQxWFeKF6PUZ8v3+sJZxk5 33Tt2tT4vxJRPl0tcRR76Z1Vxf94R5Yl/ryi2xW1LTHhx5rmaehxjSAsPu/LJ34c/gVjDR ZyXPMDczDHO3XIkW/2U1he/I/j4tkynlFRpa8VKVLOhSAVRi7Wi/copJ8VltGvtCR9H7WK L4SE00PbzeKAzI6Z1QNqnH5Q== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 3b60422e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 6 Dec 2024 17:34:57 +0100 (CET) In-Reply-To: <86cyi4lrc9.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Dec 2024 18:16:22 +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:296510 Archived-At: Eli Zaretskii writes: >> Date: Fri, 06 Dec 2024 13:17:31 +0100 >> From: Manuel Giraud via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> This patch prevents from having an empty unique qualifier in the buffer >> name. Maybe this could happen with others file buffer as well but, most >> of the time, you could witness it with Dired buffer in homedir. Here is >> a recipe: >> >> - emacs -Q >> - C-x d /ssh:somewhere: ;; This buffer is named "~" >> - C-x d /~/ ;; This buffer is named "~<>" >> >> With this patch, the last buffer will simply be named "~" instead. > > FWIW, I actually like the feature whereby once we need the > suffix, all the buffers that share the same base name acquire the > brackets. Why is it a problem that there's nothing inside? It is not > a bug. No it is not a bug. It is just a matter of aesthetic. But you're right that it could also serve as visual help. I think this PR could be ignored then. Thanks. -- Manuel Giraud