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#74709: [PATCH] Avoid empty unique qualifier in buffer name Date: Sat, 21 Dec 2024 11:11:36 +0200 Message-ID: <86ikrd8kon.fsf@gnu.org> References: <87wmgdj99g.fsf@ledu-giraud.fr> <875xnwvh89.fsf@gmail.com> <87ldwsip87.fsf@ledu-giraud.fr> <871pykupdr.fsf@gmail.com> <87h67fizc1.fsf@ledu-giraud.fr> 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="9281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74709-done@debbugs.gnu.org, visuweshm@gmail.com To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 21 10:12:20 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 1tOvX1-0002Ge-OS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 10:12:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOvWl-00053v-NH; Sat, 21 Dec 2024 04:12:03 -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 1tOvWk-00053V-Al for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 04:12:02 -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 1tOvWk-0001jY-2A for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 04:12: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:References:In-Reply-To:From:Date:To:Subject; bh=ez9Ztv89xAFcVbY/EZjI+riW4fpA1gPgVeVDHIKAbl4=; b=YgKOxjzYVbn+LgTFmwcNXpxeH2ZTi2JypOMPuOxPsauR49bbuz3k7ke4EfpgxSV52aQWnAUQHjEgPPjI7j6Nz8PGxQNnyN6FvP3oyCcKqJHU69cpcWitV1QVoHOdiUTbRIoEId7aE0VMuTFDbJVnd1n4SCiI45cIlMq79fvsBAWAhBQLmZyu8fPvRhjXyI9ZtaQg0R5WPiV+vpwKMI/tl+GYJeN6i4N6GbPa2Xn+TS2nnerPXTF31mU5gQ2GJkjDEmmBsHAV+RoDwihlL7lcQBVKed7VPP+P/Nx1uQOi3xjgOoqLm9n1dLP7u7aHSpzITd3E0objJSaOE9bJYq+cTA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOvWj-0006SR-Tm for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 04:12:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Dec 2024 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74709 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 74709@debbugs.gnu.org, eliz@gnu.org, manuel@ledu-giraud.fr Original-Received: via spool by 74709-done@debbugs.gnu.org id=D74709.173477230724787 (code D ref 74709); Sat, 21 Dec 2024 09:12:01 +0000 Original-Received: (at 74709-done) by debbugs.gnu.org; 21 Dec 2024 09:11:47 +0000 Original-Received: from localhost ([127.0.0.1]:45232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOvWV-0006Rh-0M for submit@debbugs.gnu.org; Sat, 21 Dec 2024 04:11:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOvWT-0006RT-27 for 74709-done@debbugs.gnu.org; Sat, 21 Dec 2024 04:11:45 -0500 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 1tOvWN-0001h1-Rw; Sat, 21 Dec 2024 04:11:39 -0500 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=ez9Ztv89xAFcVbY/EZjI+riW4fpA1gPgVeVDHIKAbl4=; b=UVGHPG7Z+7OAWN+DcPnP hkjF+ycL9+YOFx0fgnuH5MAfdRik/BF2Ibr3xwizKw88l5+kDxeFwEBJELy8XyJPFjfLIgI7NPsiX EmtYTlzKFGx/iB0QQMSHOSvZnkXvmf8bmc7jMg6uFwR79bKXFbHCsjIatnTxoembEbJgbasI6OKg6 1LgVJ/4AX8f0EUOuVgsLI0BFo8qE3ks8FFmiNNJQGHvB6dDcPDoyOM/MfG45/7SHwfw5U8F9vuUa1 dMgnuedPk3LvWTyUswZUgAl0hDz7EvA+LmkpbPTDkVtjFVRZXzF8tE1lsotEdpPXa/YAfZ/yK891X hmmgo9okBqvjsw==; In-Reply-To: <87h67fizc1.fsf@ledu-giraud.fr> (bug-gnu-emacs@gnu.org) 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:297503 Archived-At: > Cc: 74709@debbugs.gnu.org > Date: Sat, 07 Dec 2024 11:04:14 +0100 > From: Manuel Giraud via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Visuwesh writes: > > > [வெள்ளி டிசம்பர் 06, 2024] Manuel Giraud wrote: > > > >> Visuwesh writes: > >> > >>> [வெள்ளி டிசம்பர் 06, 2024] Manuel Giraud via "Bug reports for GNU Emacs, > >>> the Swiss army knife of text editors" wrote: > >>> > >>>> Tags: patch > >>>> > >>>> Hi, > >>>> > >>>> 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. > >>> > >>> I usually have ~/tmp visited in a Dired buffer. Sometimes I also visit > >>> /tmp which gets named as "tmp<>". With this patch, /tmp's buffer is > >>> named "tmp" instead. This confuses me as I am used to seeing "tmp" for > >>> ~/tmp's Dired buffer more often than not. Can we gate this new > >>> behaviour behind a user option please? > >> > >> I don't think that there is more confusion then if you only have /tmp > >> opened which will have its buffer named "tmp", no? > > > > Sorry, I meant having /tmp being "tmp" when both ~/tmp and /tmp are open > > is confusing for the aforementioned reason. > > Yes, you're right. Thinking a bit more about it, I don't think this > patch was a good idea anymore. When a buffer is named "tmp<>" it > conveys the information that there is another buffer with the same base > name. If it is just named "tmp", we have lost this bit of information. Thanks. Since there were no further comments withing 2 weeks, I'm now closing this bug.