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#63829: 29.0.90; project-find-file's future history breaks with common-parent-directory Date: Mon, 21 Aug 2023 04:43:56 +0300 Message-ID: <96d3e02d-324b-7cd3-b271-3b67153ada16@gutov.dev> References: <16b64d95-35e9-ef94-2c54-17b670111f0f@gutov.dev> <86h6rnw7gm.fsf@mail.linkov.net> <3e404df1-b3a9-f9e3-4270-f42df8b704c7@gutov.dev> <87a5uti6mo.fsf@catern.com> <73a695f3-7c6a-0e50-41dd-61f8269f6ecf@gutov.dev> <875y5fitiq.fsf@catern.com> <86a5ulls6z.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="31363"; 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: sbaugh@catern.com, 63829@debbugs.gnu.org To: Juri Linkov , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 21 03:45: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 1qXtyp-0007vP-Bi for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Aug 2023 03:45:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXtyY-0006Sf-OZ; Sun, 20 Aug 2023 21:45:02 -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 1qXtyW-0006S4-UJ for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 21:45:00 -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 1qXtyW-0004La-M3 for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 21:45:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXtyX-0000JA-Sm for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 21:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2023 01:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63829 X-GNU-PR-Package: emacs Original-Received: via spool by 63829-submit@debbugs.gnu.org id=B63829.16925822531108 (code B ref 63829); Mon, 21 Aug 2023 01:45:01 +0000 Original-Received: (at 63829) by debbugs.gnu.org; 21 Aug 2023 01:44:13 +0000 Original-Received: from localhost ([127.0.0.1]:55108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXtxl-0000Hl-1V for submit@debbugs.gnu.org; Sun, 20 Aug 2023 21:44:13 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:39367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXtxi-0000HQ-Bu for 63829@debbugs.gnu.org; Sun, 20 Aug 2023 21:44:11 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id F0B7B3200902; Sun, 20 Aug 2023 21:44:01 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 20 Aug 2023 21:44:02 -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=fm2; t= 1692582241; x=1692668641; bh=yAeoDWeRL89oxSCh8PyXsb0MU9S1bgk1Rty k4xM9hSM=; b=YXMFmjUT2eueKGyMAPQk4TI+rMiTm3EXRES8sFCJ73IGy11B7Z3 yfxUMoYWzn6AtKfI1ZmHWgjcJ46uYrpJmFT2E2sEDpsiJIq/SFX3DmnShv28557u yCsVTajseEuhqe3yJogpylMdNxF8oj1g0RKvPFbfhDuSwavIoxc43B4n8U5FStTR 0xNWlWVzQSlXyxnYTKZn3NMVTIA4fwDdKOneB+JEM0C9EG30WJCb+T0t1kJeaW3g E9y6gM1jpfuJELr+rQy1c19KL3GDylqrdxM8vO4cTKbT0lTqyoYx+8sIMueX3RQE BWgfGWRzi/Fzlk0hpFxZlBCqPNX2q5+THhQ== 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=fm1; t= 1692582241; x=1692668641; bh=yAeoDWeRL89oxSCh8PyXsb0MU9S1bgk1Rty k4xM9hSM=; b=KpRrf0koZ+Vo4/jKvQsZTAJIhNNPSNRl6CFuso8j3KJOmQLTBNa mHj51h/p7JGTJy9u6NKtJlUz0O+91wf6QG1PzJg6P/Av0VpwO1LzMyeVopklzghH LiA4NVthcJgHeGFQtGEn3YfEMds1A5aedLLgaUWYHkDg2eTqT3yuKxzwLpofLoH8 oOYSV8TevKixAnldzb1gcRs8gc4Rv+AQb59jBl6RPiAIJB7iK4ua6P0uKVWHb04T CMsBjjVVjbKgme5O51Tp5qUOt1aeAHmyDJkP19OlUl/mzdOD7ZM7qWjrnN3KJwl4 IomyMDJMG29wOCI1X+6n4IZbAGEz0kN+Wpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddukedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 20 Aug 2023 21:43:59 -0400 (EDT) Content-Language: en-US In-Reply-To: <86a5ulls6z.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:268052 Archived-At: On 20/08/2023 20:20, Juri Linkov wrote: >> +(defcustom project-file-name-history-relativize nil >> + "If non-nil, paths in `file-name-history' are adjusted for the current project. >> + >> +When non-nil and in `project-find-file' or `project-find-dir', >> +paths in `file-name-history' are adjusted to be relative to >> +whatever the current project is, instead of the project which >> +added those paths. This only affects history entries added by >> +earlier calls to `project-find-file' or `project-find-dir'. >> + >> +When `project-read-file-name-function' is >> +`project--read-file-cpd-relative' (the default), this has the >> +effect of sharing more history between projects.") > Instead of, or in addition to 'project-file-name-history-relativize', > another option may be needed to define whether to check the > existence of the constructed file name. This could help > to filter out irrelevant file names constructed from > different projects. It could indeed. But it could also prevent the user from easily creating a new file with the name from a "sister" project. We've discussed this before in this thread, including the idea of some predicate checking the projects for compatibility, etc. What behavior would you actually choose yourself?