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: Wed, 23 Aug 2023 05:26:23 +0300 Message-ID: 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> 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="29466"; 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, Juri Linkov To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 04:27:17 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 1qYdaU-0007SA-SK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 04:27:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYdaH-0003q1-Np; Tue, 22 Aug 2023 22:27:01 -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 1qYdaF-0003pP-LR for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 22:26:59 -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 1qYdaF-0004gQ-Cy for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 22:26:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYdaI-0002rv-5t for bug-gnu-emacs@gnu.org; Tue, 22 Aug 2023 22:27: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, 23 Aug 2023 02:27:02 +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.169275759810993 (code B ref 63829); Wed, 23 Aug 2023 02:27:02 +0000 Original-Received: (at 63829) by debbugs.gnu.org; 23 Aug 2023 02:26:38 +0000 Original-Received: from localhost ([127.0.0.1]:60731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYdZu-0002rE-1u for submit@debbugs.gnu.org; Tue, 22 Aug 2023 22:26:38 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:60615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYdZq-0002qy-VK for 63829@debbugs.gnu.org; Tue, 22 Aug 2023 22:26:36 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 73D665C025D; Tue, 22 Aug 2023 22:26:26 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 22 Aug 2023 22:26:26 -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=fm3; t= 1692757586; x=1692843986; bh=C2O+k7YjkyDqyNo0PIB0vjmkR5lGsBkMbJP tOSzyht8=; b=BC992l7bVeFMUSsmTAlUbcCncrrSH0eZ1W9o/pzlX63tkXC6JSX y6rtqBGIT36+olMUZ0zPkaH0jj+JjwDveqWraaoRN0TKhEJv14lAAaQVlXa9PYwf QaUUf0eSKIT7vSaa5eYtzEjWKnUKOuGI/qIHHzVDxMXRo3hjFeumNj9TS1wrdp4u pZYuUG/kAeDZ+BxH0m79LGZc3p5vhFrgTbhXzN/3M8EC/5shBDOVOwYG8xRuVcUq JWr8K0jpg2ANndoBA7lLpoQXB3W4frN+vfLrD++RtJYnWK4ooU3GbpUMCvLEC0pq X9Ailq51XGff5SVFmjc+xxVk1L5apjTp7aA== 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= 1692757586; x=1692843986; bh=C2O+k7YjkyDqyNo0PIB0vjmkR5lGsBkMbJP tOSzyht8=; b=b5UvjSKtObk6LA3RjKFD4QnvL48ztWVwe0MuMRwQYEbN91DTryX M2U7lMNh49U8bP/C0m1bTsSar7zYn3TGp1wDzMWqWgMfM9GCoNeqxtv9M7MP7Oyd SWOuMI47ggdPe4AV35jxKowoKyvhAMLUWc7nLk86wNBaHcelWhoJwmmVVQaP/eH3 vMcBTprom/ZGgSYrX9YQsRAYZTk4CT6SRkm2770joeb5CrjWjkdTCy8TgBwSR3vs +i7PHmSDRXs0pHBNEYp+fi2yK4BoklXVpGB6S3UVecaMmQc3O192cznoA1dPsYBj An1IpSR4IdJQKothXbOz8m270cy3XdfumZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Aug 2023 22:26:24 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:268200 Archived-At: On 17/08/2023 22:41, Spencer Baugh wrote: > Also, I realized just now that this should probably affect > project-find-dir as well, as should my previous patch adding > project-relative future history. (I actually coincidentally just now > got a user request for "switch between projects and stay in the same > dir") > > So here's a revised version of this history change which also affects > project-find-dir. In a subsequent mail I'll send a patch for the > "future history" behavior of project-find-dir too. (yet to be written) Installed, with a few alterations: - project--expand-file-name -> project--transplant-file-name (seems more explicit for understanding) - The new option renamed to project-file-history-behavior with values t or 'relativize. I thought about removing it, but after all, the change is a bit exotic, so there's bound to be people who would want to disable it. And the new name is also more extensible (extra behaviors I could think of by now: 'relativize-when-exists or 'separate -- the latter could mean to use separate history var other than file-name-history). No hurry to implement any of those, though. - project-or-external-find-file needs some special handling of the relativization when external file names are chosen. Better solutions welcome. - Announcement in NEWS. :-)