From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov 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 20:52:58 +0300 Organization: LINKOV.NET Message-ID: <861qfty6ul.fsf@mail.linkov.net> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Spencer Baugh , 63829@debbugs.gnu.org, sbaugh@catern.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 23 20:18:32 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 1qYsR5-0002pj-Kn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Aug 2023 20:18:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYsQw-0007qF-2Z; Wed, 23 Aug 2023 14:18:22 -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 1qYsQZ-0007on-IQ for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 14:18: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 1qYsQZ-00067w-4M for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 14:17:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYsQc-0006PC-Jt for bug-gnu-emacs@gnu.org; Wed, 23 Aug 2023 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Aug 2023 18:18: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.169281464524563 (code B ref 63829); Wed, 23 Aug 2023 18:18:02 +0000 Original-Received: (at 63829) by debbugs.gnu.org; 23 Aug 2023 18:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:35155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYsQ0-0006O6-Sh for submit@debbugs.gnu.org; Wed, 23 Aug 2023 14:17:25 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:45369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYsPs-0006NS-Du for 63829@debbugs.gnu.org; Wed, 23 Aug 2023 14:17:18 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id EA91A1C0004; Wed, 23 Aug 2023 18:17:04 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Wed, 23 Aug 2023 05:26:23 +0300") X-GND-Sasl: juri@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:268267 Archived-At: > - 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. :-) A typo in NEWS? 'relative' -> 'relativize' Also to reduce confusion for everyone who will look at it, better to rename the property to 'project-root' in: (propertize file 'project (project-root project)))) PS: The docstring mentions the limitation: "This only affects history entries added by earlier calls to `project-find-file'". There is no way to remove this limitation? Maybe some clever way to match every file name from the history against the list of all known project roots to find the root on the file name without property. This will also work when the file history is restored from the desktop file or by savehist.el.