From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#74709: [PATCH] Avoid empty unique qualifier in buffer name Date: Fri, 06 Dec 2024 23:14:38 +0530 Message-ID: <875xnwvh89.fsf@gmail.com> References: <87wmgdj99g.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 18:46: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 1tJcPQ-0009sy-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Dec 2024 18:46:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJcP4-0004ok-V5; Fri, 06 Dec 2024 12:46:12 -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 1tJcOw-0004o8-Fo for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 12:46: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 1tJcOw-0007Dc-7r for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 12:46: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=CSgQLZchmkwZEPwkndL3nw39CHnTB0cPjYqyhA2tQlw=; b=q0YtSHsET9aISLK2hh7r29yBQ5AkFGpnruH0Czg1AwsvGGBFiJS6UtmYGFXys4jiY+qH9NnCwaFIfEmxVoCveo5zca2vWvTWDDQfbpLYa7YJTarM/jbS77GPOJmpmBKHIgqWt6Qr4Mv9llxmmh9F4BDKBJo6IHL0kjVsC1NK2Lr8A0QMp08ftyvP0wgXsxiid2koFIHNlrEBlSSyO8oWO4w0KoNBIDe/xksBcRiMcAMVRIY7sh3Ya96isfid6reRxORbJTO+2U0dczAdoNHoHyLMuNRL7kdPvq6Oya87ZsCA4MXixXHg2IM5Qo08nmDleBurqJRAcII/CCKIeyUSVw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJcOv-0005YN-Lc for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 12:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2024 17:46: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.173350714621319 (code B ref 74709); Fri, 06 Dec 2024 17:46:01 +0000 Original-Received: (at 74709) by debbugs.gnu.org; 6 Dec 2024 17:45:46 +0000 Original-Received: from localhost ([127.0.0.1]:44213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJcOg-0005Xl-Ey for submit@debbugs.gnu.org; Fri, 06 Dec 2024 12:45:46 -0500 Original-Received: from mail-pj1-f67.google.com ([209.85.216.67]:61796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJcOe-0005Xb-CE for 74709@debbugs.gnu.org; Fri, 06 Dec 2024 12:45:45 -0500 Original-Received: by mail-pj1-f67.google.com with SMTP id 98e67ed59e1d1-2ee4f78493aso1913101a91.3 for <74709@debbugs.gnu.org>; Fri, 06 Dec 2024 09:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733507083; x=1734111883; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CSgQLZchmkwZEPwkndL3nw39CHnTB0cPjYqyhA2tQlw=; b=FpRisCC4gfRzES7LJ+bGJ7OnjnsUlQ7KEB6/pYbbKy0cb8ZA/eV7TEK+GW41WVNHKZ MVKhdslVTVX95Y5dAVKwrYMGSCXnbMrbVrsXBn3VmhtLgjnHDVxqmFFj99eLQ0l+Tg6q ebCIJltZcIWGxfUVm84oRCQFue7Cjd0sySYA+jPKKc3UF8zXIpv9s2X58B2+CaVGNjAv OAHWnVoPeZj6dRwyI5lQT1AR/C6VGm1/surAYzop/Myh6a+nBFo/LrSEOPKjwbLQtkZV Lr99lgSy8qZI5Lmo+4LZFnCJe3LzL/3JL7SOnrRXjlLJSziDv9S9hc4SVvcNmGv8NPEJ JweA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733507083; x=1734111883; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CSgQLZchmkwZEPwkndL3nw39CHnTB0cPjYqyhA2tQlw=; b=uLUMSFSSitpOJERF2zb6Dxgx5gqVVl9BkM6ktfjA42ce8dlz1167ZldroaRqzLhgZB 0LZi3rICktTgpL0N5DdRr3CAUEkUrPVwURcMCQzswzk/9HxI5qlLLVyZEbaCgKQmikER b3iNKbeCprAmUCUbavmHf+eZf3kKEkIjd7L56HMbxARdsRfI1o8JKlSCIRlQRKr6yskZ /mGe9/KPjw7w57sYlD5zxCl3RprsUqIKABYSd4ozI4u6YZjXSUTiJbpVxLzbAtV//IKJ BLPSP+7hxkBGQ3HN1j/YX7N08OjXcs2jDNr7AZhquoCAuOMrgcS38euPM8nWXFu6QTSd 4wKw== X-Gm-Message-State: AOJu0YztMI5Y+9VYR32MIb/hSv8GmFPDQaNAWQyyFTlzMAgNJsWJFtnR 6JZYfjiysALL2DzyGK2VhuZMQVhKPXe58nQNws+HHZBZymiYqsGITs+Lf5+J X-Gm-Gg: ASbGnct+Zx0/EasKgJy/et76qMFi2odzZLD1tFnNg6P4spdX4rrEPAqqQtsX8iE7jz6 X6XhXbCDjyDuhrwWN02sAGspVSLsNL/pTDerQsYol4XbCt+we0tdxK7KkoxTN6yD3c7ciIC7dhW IelWz9zrt9NgtaJLW0fgwi5S7eOVketZefDuOZABhxEiFlHYmEc8bCDQZSLv6vYDjv4Xjbx+IsS nLe46WJXEb95BjdC8OtUdg+Bp3pS4SzAd6IilNGVHx+R4xQpW8= X-Google-Smtp-Source: AGHT+IFXGJHzvTkZG7B3A/8Hm8L7y+tR5tPA4ZUlXX2TigQWSwoYR8HARBwuY3Q6COslrVp42l9FKQ== X-Received: by 2002:a17:90a:c88f:b0:2ee:dd9b:e402 with SMTP id 98e67ed59e1d1-2ef69f0b077mr5892524a91.12.1733507083230; Fri, 06 Dec 2024 09:44:43 -0800 (PST) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ef45f7d3d6sm3466260a91.4.2024.12.06.09.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 09:44:42 -0800 (PST) In-Reply-To: <87wmgdj99g.fsf@ledu-giraud.fr> (Manuel Giraud via's message of "Fri, 06 Dec 2024 13:17:31 +0100") 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:296518 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9F=E0=AE=BF= =E0=AE=9A=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 06, 2024] Manuel Gir= aud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" w= rote: > 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?