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#62621: 29.0.60; uniquify can't make buffers unique based on things other than filename Date: Sat, 15 Jul 2023 09:20:41 +0300 Message-ID: <83bkgdelvq.fsf@gnu.org> 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> <83pm4teno1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31514"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62621@debbugs.gnu.org To: sbaugh@catern.com, sbaugh@janestreet.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 08:21:20 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 1qKYeb-0007vy-8b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 08:21:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKYeO-0003Gd-29; Sat, 15 Jul 2023 02:21:04 -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 1qKYeM-0003GS-7B for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 02:21: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 1qKYeL-0000B8-Vk for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 02:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKYeL-0007PV-Rb for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 02:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2023 06:21: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.168940202928440 (code B ref 62621); Sat, 15 Jul 2023 06:21:01 +0000 Original-Received: (at 62621) by debbugs.gnu.org; 15 Jul 2023 06:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:43874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKYdp-0007Oe-80 for submit@debbugs.gnu.org; Sat, 15 Jul 2023 02:20:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKYdn-0007OR-Dg for 62621@debbugs.gnu.org; Sat, 15 Jul 2023 02:20:28 -0400 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 1qKYdh-00088t-EE; Sat, 15 Jul 2023 02:20:21 -0400 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=1C5Dty+K4cQwhlU+eviuAIqzS84DsmuXxybl5dtI0pw=; b=Ep5Q2UxwadHy gpMwphtuvluvsbwB+r1ahzIBq+EaN+22d4W/Vxy/MkpTMGMZ4hAjFQEf4OZBzcxh/cmzD7YNvtXzS j6AHIgx7E/mDMGhXNr2rrULCZrW0tKRPxq07yCH/cWO5eTPQOphCkeOjgHu4d5ROa1tS7jp/7CjXd iHzSxeqrgxQJIiD3bLuQQi74WagnpD+kX7jmnPu+pU7CC826v2PUIYsRabcgCsWvi3Ev56YiBU+y7 3wqvLA8P5fRrZj5Cl9csM+ZKbe+vzl6wmEQbh+wOIPGtgecFZWM5EK0HRvA20yyWubH1Kqo++uNN2 j4MGehMhMbMqqDhYWnCjGA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKYdg-00074J-Us; Sat, 15 Jul 2023 02:20:21 -0400 In-Reply-To: <83pm4teno1.fsf@gnu.org> (message from Eli Zaretskii on Sat, 15 Jul 2023 08:42:06 +0300) 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:265148 Archived-At: > Cc: sbaugh@janestreet.com, 62621@debbugs.gnu.org > Date: Sat, 15 Jul 2023 08:42:06 +0300 > From: Eli Zaretskii > > > From: sbaugh@catern.com > > Date: Fri, 14 Jul 2023 19:15:50 +0000 (UTC) > > Cc: Spencer Baugh , 62621@debbugs.gnu.org > > > > 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? > > You can use autoloading, for example. Or explicitly > (require 'project) when that value is seen. Or any > number of other solutions we have for such situations. Or even add a setter to this new defcustom which would set the uniquify variable to a project-specific function, and you already had that situation solved, right? IOW, we have a lot of possible solutions for this kind of problems, just select one of them.