From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62621: 29.0.60; uniquify can't make buffers unique based on things other than filename Date: Wed, 19 Jul 2023 05:24:58 +0300 Message-ID: <41ac58ab-2d6b-223d-39c4-8844ec6019c1@gutov.dev> References: <87bkgfjugn.fsf@catern.com> <83edlb3t0t.fsf@gnu.org> <878rbika0i.fsf@catern.com> <83h6q6g0qx.fsf@gnu.org> <83edlafzht.fsf@gnu.org> <4abafd65-fad0-f723-9bd1-e6e2a77bb837@gutov.dev> <86wmyx5crs.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14426"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Spencer Baugh , Eli Zaretskii , 62621@debbugs.gnu.org, sbaugh@catern.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 19 04:26:11 2023 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 1qLwtG-0003Xk-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jul 2023 04:26:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLwt9-00032l-Pt; Tue, 18 Jul 2023 22:26:03 -0400 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 1qLwt8-00032N-Dh for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 22:26:02 -0400 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 1qLwt8-0003fV-5V for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 22:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLwt8-0004yn-11 for bug-gnu-emacs@gnu.org; Tue, 18 Jul 2023 22:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jul 2023 02:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62621 X-GNU-PR-Package: emacs Original-Received: via spool by 62621-submit@debbugs.gnu.org id=B62621.168973350919072 (code B ref 62621); Wed, 19 Jul 2023 02:26:01 +0000 Original-Received: (at 62621) by debbugs.gnu.org; 19 Jul 2023 02:25:09 +0000 Original-Received: from localhost ([127.0.0.1]:54583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLwsG-0004xY-M8 for submit@debbugs.gnu.org; Tue, 18 Jul 2023 22:25:09 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLwsE-0004wu-4V for 62621@debbugs.gnu.org; Tue, 18 Jul 2023 22:25:07 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0EF155C00E1; Tue, 18 Jul 2023 22:25:01 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 18 Jul 2023 22:25:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1689733501; x=1689819901; bh=qsdrfbAHvfZJa8OEFWL+WXJctVwLfbGG2YN yMyLXy/U=; b=ipl01pYrx5+/6UVk2rouhxN2mdDoozJqL8U2ZH05bgPBO15kBJM xsH3LAjKkoOdIg4lTss22EyhVWRxUCtCE26eL9CVNljbJ1vJJtxNi7EvE2eXnZWV V2Pai3zOpjpK78lcVyXyjcFLHLHz8gPeG0r2VXye2ScbQPpSdGJWdRpXmWWuFCbE /en5qx4gFOOkbpoc7IbMofDfK44lYtnPv6dgElTTCrbtC6ujywoV7hrxirQKMC5+ 40HyWaOoZTELTssY8MyAYB2NJ3+HpHUnLFDkpRcTN0a/IWFIbpGiMbINl85QkSuF auwlvqf0s4GvKA4UpGO8p/xAKEXL6E2eUrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1689733501; x=1689819901; bh=qsdrfbAHvfZJa8OEFWL+WXJctVwLfbGG2YN yMyLXy/U=; b=pfGaxmlflVhOQgwvSbkYxz4NK3qYQepfk3YiCyNgkxl3cnQJlDG wdTflwWtOL9BCDiKTO9vMRtpCv/jFTGkVRxt3ycQ2ddyp69QpA12MJzZWy5M0LKs DR5Oy975j8bvb0GCJWmozGs1XE85XeawNCVas6If6/pyL4BxbS+8IDFfJF8ERxZ0 Rb0bADyckL9ZH25go6gQEMJI43ue4bRXOxHwSSsincJP6/4uF/XbbrHnnKO4y1Mf 5U7ulBPiWWDerJiScBA9sZKpfzO0tx12H5TMyFyLf9WPdffLLlSZ5NfSmMAbXYRq +XLQBKobOntt7eFFTL80XiDA3sJu1Y9Bqfw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeehgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Jul 2023 22:24:59 -0400 (EDT) Content-Language: en-US In-Reply-To: <86wmyx5crs.fsf@mail.linkov.net> 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:265505 Archived-At: On 18/07/2023 20:51, Juri Linkov wrote: >> - Hide the parent directory from the uniquification logic (only keeping the >> project name). So that, for example, if I call 'M-x project-eshell' and >> then 'C-u M-x project-eshell', the generated buffer names would not try >> to use the parent segment to uniquify, and just stay as >> /*eshell* and /*eshell-2*. > Often a project name in the buffer name is needed not for purposes > of generating a unique buffer name, but for permanent indication > which project a file/non-file buffer belongs to. That's what I was thinking of as well. I suppose, the question is, though, which place in the code should make that decision, and which one should be in change of formatting the buffer's name. > In such cases indeed a parent directory makes no sense, > but still uniquification is required for buffers inside > the same project, e.g. > > /*eshell*<1> > /*eshell*<2> > > So here are 2 styles combined: one for top-level project names > produced by project.el, and another style for the same project > by uniquify.el (in this case 'post-forward-angle-brackets'). ...which is a bit untidy at the moment.