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: Fri, 06 Dec 2024 18:16:22 +0200 Message-ID: <86cyi4lrc9.fsf@gnu.org> References: <87wmgdj99g.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74709@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 06 17:17:22 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 1tJb17-0006FB-85 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Dec 2024 17:17:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJb0r-0000J4-TO; Fri, 06 Dec 2024 11:17: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 1tJb0p-0000Iu-3g for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:17: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 1tJb0o-0003nD-Qx for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=WmvFd8Dglv8H0XzeI/8ao/UVKRfd8IAtON0uv+2XCrM=; b=dHF6rmoQS0NlDOb8HjL5M2VyHtnpMUirYzlEDyxpalVUGNN4Y3P72ggkNNgxxS3GCd3mTADWIqDLsE7QSmtYpjSy8mbfO0Sb2r8qv9u7S/UXXRV62jYexfuIqSlQZkcTv96Zi1DpN785iS1sui80ZiycTpH/xfRfuHUH8VgmKA4oU0B7Ts9yn9yZinPdKJ8UDtJUdE49LkT0hmAMCE6D3Lt681oBdF+mECJEKqHDw4zKmO+YdlmGuhl3ES8Ly/RmHakh//G719RUgVQ4c6nMBnjbST+5bCHSg2mUjOZwgKVJ/Ttu4XQoCCa5EUwp1ADB/6ZhH2z6zIT50dXbXwZVbQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJb0o-00018N-GW for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 11:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2024 16:17:02 +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.17335017944322 (code B ref 74709); Fri, 06 Dec 2024 16:17:02 +0000 Original-Received: (at 74709) by debbugs.gnu.org; 6 Dec 2024 16:16:34 +0000 Original-Received: from localhost ([127.0.0.1]:43996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJb0M-00017e-7h for submit@debbugs.gnu.org; Fri, 06 Dec 2024 11:16:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJb0I-000172-AF for 74709@debbugs.gnu.org; Fri, 06 Dec 2024 11:16:32 -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 1tJb0C-00035F-Vg; Fri, 06 Dec 2024 11:16:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WmvFd8Dglv8H0XzeI/8ao/UVKRfd8IAtON0uv+2XCrM=; b=DlMs1kY7FVrv NTu5q2k/ssgNukZaLLJ8iJCYmOacQlLzzguqTOzMsBkZo71f2LPcimCcEEQEjlKW0/dueBOcIy/BY DW7LJviIdEPyiNV+eIenQpsSncsEBsGO7e8asXgaRov+NbqBbT7SBpOSfvHDqhiVi/aQobC2/oSHt UOQVotHpB2AfxCgO0kda2aYdGw26a95HsrdaatCGdh7Bq5u3pBcKz6Ptup0Nv/tzuPs5rbewiIk4S hmhxyUB7zt8wbHyRKidPcXuA0zQcm6KRaaupIdUG1K+z5WngtjewHhH1DlRfFR/+GFmfmlRX0ChOg +ZrSXu/f2W/rGKO8/DwmfQ==; In-Reply-To: <87wmgdj99g.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:296506 Archived-At: > 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.