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: Sat, 07 Dec 2024 09:16:08 +0530 Message-ID: <871pykupdr.fsf@gmail.com> References: <87wmgdj99g.fsf@ledu-giraud.fr> <875xnwvh89.fsf@gmail.com> <87ldwsip87.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="16417"; 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 Sat Dec 07 04:48:27 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 1tJlnu-00046o-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 04:48:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJlnY-0002p7-VC; Fri, 06 Dec 2024 22:48: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 1tJlnW-0002os-VB for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 22:48:04 -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 1tJlnW-0000dJ-M9 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 22:48: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=Wi/2I4UY1vpDbNxGWkhAbhs8TsKJDPGUT/1innLkPvc=; b=rPBbsWkNAQu/hsCKdIwUJs0Pgl0IM7Ear8EdeoS0HLMZEFR5hF2N1YbiwDIVIZIbSgG7kHwFNfh2pWqBssKLQ6BUwKGNLBFDQ/TmQ9+PV+6sy78DAropUd2UW8FBTsoi/uV7VaUskhh+qiAaLEAY2ngCnDI1TvM69kJRrECI5wgJdqaa8dREqX2hapgMK50/+qjkal2jsBuIMCvwBe+Q0V5eIqew9V8nnNDpa3J6cme9BWLSk+yBQHhJMGF/db36Uie3Ks805Stw6wH/q3ZcWfPo6Y4j1PlNsOsO2ndFbv9ZKDuzdbVAebPXI+jhQz+q52lLb96J765fmacncZt7xA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJlnW-0001Ff-9N for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2024 22:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 03:48: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.17335432414737 (code B ref 74709); Sat, 07 Dec 2024 03:48:02 +0000 Original-Received: (at 74709) by debbugs.gnu.org; 7 Dec 2024 03:47:21 +0000 Original-Received: from localhost ([127.0.0.1]:44961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJlmq-0001EL-PQ for submit@debbugs.gnu.org; Fri, 06 Dec 2024 22:47:21 -0500 Original-Received: from mail-pf1-f195.google.com ([209.85.210.195]:48129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJlmo-0001E3-2p for 74709@debbugs.gnu.org; Fri, 06 Dec 2024 22:47:18 -0500 Original-Received: by mail-pf1-f195.google.com with SMTP id d2e1a72fcca58-7252fba4de1so3071974b3a.0 for <74709@debbugs.gnu.org>; Fri, 06 Dec 2024 19:47:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733543172; x=1734147972; 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=Wi/2I4UY1vpDbNxGWkhAbhs8TsKJDPGUT/1innLkPvc=; b=lP8L6UN3HRb5TMR5DftltANpCx7IuDSFNOD5ZOzs/nWSowFC2rayR6DIOg79fekEh2 KixJs1VQ6IPmu9d1R62WSB4vv/T76nRPyglMTHPOWKKOdVhy6rIterN5KPmKf3K7iyJR mAPuxfZSlL76vb7H9nVcbGg7AnCcvNyes1artceGYjkanBMM7bnKG63R/vLKTmeJQDrN oruhnXLMUt81isQaM9/YR0zhk4c33iBvuwA316RsPzkW1RUepaa0yfAeP5tzQ3e7YUNA TbOk0n5QF+6+OkdgaCK1Q/MadjWSAkEOcuYPoD9nFOixnAFYTtza/aaB04pFJyzLZ3BF UEXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733543172; x=1734147972; 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=Wi/2I4UY1vpDbNxGWkhAbhs8TsKJDPGUT/1innLkPvc=; b=tLaPcL0Qrqvb91ooFMV1MP9BfVTJVY+jd3ywiNcCwmcQQXvV740KjSJSJJhMzuBJbT /0xXCa5Iwiv96sv6LicVwsuyey6+79fVtTl8YXepPIwzwFZQwaSM3Lz4FKQJqZ0Bsma9 IyRNuuQBnBXXhkEP6L8NNvZKF/5Oia8Qf+aJlxoXOrMiFHdaGeFxtGXEROb4kBqcK6qa ez+/h6wVlYpZlb9ne04+lhqiLybv9/w6AFjCYHndku06K5EKJMZ5JVsEpiKfntP+tw6f 8dpqHgXd7i6y7F6Q3syiyrPRLHItisVnnctbyTaOyBRVVUF+LR7HfANx6kSGJvhx8GOU VaJg== X-Gm-Message-State: AOJu0YxdrREcCSfCkZLDd46QaDC6Xd0etQ79zIjOajMrBABb9NweCQmv TMEKlJ0bRghXuWmo49NET3jGPzZlGhqxR6CAvgWvqQe25ibc6dvx+bZ+USa/ X-Gm-Gg: ASbGncsWfjxg0pK7K1ktW4oZQirNCWiiAZHV/cUSykJRqymwpSqWTb5zPHGBBClSRK/ itbFDos+Wpo3W0qL/eRsDnzDfEFb4nQWtHGTDrBs0bwSETZ4T5HxQjhS5jkUvT67n1kC8sUPquP BB+i/aZWf29fJ8SFfVdwn+O6LiFjjaRrME6jZCMKbhEkSPeoZbLbjZ4tN71JxzlsvfKNIANsoLv c3y1wORQ3imQleLJYO0CmI3qGq6mfQbI5RmDEGeMY5k5p1HfpQ= X-Google-Smtp-Source: AGHT+IFh0U6OXeUhWeNuyI1Kn4avwDHpPnERo+ycUJQfKg10iXN+ytZWeQMEd6L/uopdMqS9wuZVQg== X-Received: by 2002:a17:903:230a:b0:215:6e28:8260 with SMTP id d9443c01a7336-21614e06329mr77372345ad.50.1733543172008; Fri, 06 Dec 2024 19:46:12 -0800 (PST) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21627260937sm6479055ad.103.2024.12.06.19.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2024 19:46:11 -0800 (PST) In-Reply-To: <87ldwsip87.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Fri, 06 Dec 2024 20:30:16 +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:296524 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 wrote: > Visuwesh writes: > >> [=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 = 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.