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: Tue, 18 Jul 2023 03:19:54 +0300 Message-ID: <1bf9b290-9942-650c-1328-c9f40dcca256@gutov.dev> References: <87bkgfjugn.fsf@catern.com> <83edlb3t0t.fsf@gnu.org> <878rbika0i.fsf@catern.com> <83h6q6g0qx.fsf@gnu.org> <83edlafzht.fsf@gnu.org> <83bkgefvp6.fsf@gnu.org> <83r0pae2cf.fsf@gnu.org> <875y6mjod6.fsf@catern.com> 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="24453"; 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 , 62621@debbugs.gnu.org To: sbaugh@catern.com, Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 18 02:21:23 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 1qLYSu-00064F-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Jul 2023 02:21:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLYSg-00084L-R7; Mon, 17 Jul 2023 20:21:06 -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 1qLYSd-00084A-1Y for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 20:21:03 -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 1qLYSc-0003QY-KG for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 20:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLYSc-0005Mc-Ft for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2023 20:21: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: Tue, 18 Jul 2023 00:21:02 +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.168963960920549 (code B ref 62621); Tue, 18 Jul 2023 00:21:02 +0000 Original-Received: (at 62621) by debbugs.gnu.org; 18 Jul 2023 00:20:09 +0000 Original-Received: from localhost ([127.0.0.1]:51209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLYRl-0005LN-0S for submit@debbugs.gnu.org; Mon, 17 Jul 2023 20:20:09 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:38379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLYRi-0005Kk-7a for 62621@debbugs.gnu.org; Mon, 17 Jul 2023 20:20:08 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 58C6E3200930; Mon, 17 Jul 2023 20:19:59 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 17 Jul 2023 20:19:59 -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= 1689639598; x=1689725998; bh=oRuxflrtY1uGGTnnIjzcLWmbMZYvheYIUH2 KQOhY1bI=; b=LHQAN6pUn6Ac2j3nhwgdZ6XFQo9Izj9J4km2oHES44zC3b4RpJy Ji+G9i3tqdM+FCUuRyEKG1VSa3R02I6PymsLRVAwqDHNVzY5WvDQizeXW1ikDX8J Me8aNeRELr2u5304ZOtoyFdE8iRyn0aTO9ur4L+USF01KJp6BRDp6QKxP1WCHZ3k 1srEEQq92/x9KwVU5UVUOWXICJMysHKq7Qc48kXwYXv8qJgpKHlmI+MuR8ROHoGC wqrcuLIb/83vf9qw969r5diEEyeR5qjx34js/tC+Zmdjob3b58GQ7/DsS7pmNCXF GXf7LEyrzcYBn7QOXvNogWDiW45r5gisMng== 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= 1689639598; x=1689725998; bh=oRuxflrtY1uGGTnnIjzcLWmbMZYvheYIUH2 KQOhY1bI=; b=fLsDDtXbazLEJtHOhYCgL4aLSsPs/lGWseHxJTqnR9PK4P0PFtQ otD/UeyJ2SxRGPj6Hc9B/sOThmU9y4wU/8subLGdqNG788gLCZDyYow+MuFtUjPq cQkmULtOE/TIp05UB0nZ1/3BrzeIR1Ka5mGBBiGkI8hQn0aaC0FSk7nR6NecabT+ +mYEg0q/7D97Y8kUpZ1ZI9KXyFxdD5TCg/PF8owPswkT5t9Tc9/jPV8WrGOjnckx bnQBPykl5b6l3IY3ytmL46UhK3AvuR38DRHQPmF+twGqqKbBS8KXsh2Ty47f55cS oSnGuHfYmVeZ1EgH7BFDm/8LQCeGGXwoeuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeefgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 17 Jul 2023 20:19:57 -0400 (EDT) Content-Language: en-US In-Reply-To: <875y6mjod6.fsf@catern.com> 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:265416 Archived-At: On 14/07/2023 22:15, sbaugh@catern.com wrote: >>>> how is this different from using symbols? >>> I can't contrast that to "using symbols" because I just don't understand >>> what you mean by "using symbols". >> It means the defcustom's value is a symbol, like 'numbered or >> 'append-directory, not a function. > Yes. But how would you implement it so that setting the defcustom to > 'project causes the project-uniquify-dirname-transform logic to be used > by uniquify.el, without mentioning project-uniquify-dirname-transform or > other project functions in uniquify.el? Yeah, that sounds odd to me too. If we allow symbolic values in a defcustom, somewhere in the same package there has to be a mapping between the symbols and the functions corresponding to them. Which would have to refer to a function from project.el in this case. Of course, we could alternatively have some sort of registry for third-party code to jack into upon loading or etc, but that sounds like a massive overkill for this case.