Subject: Re: bug#63829: 29.0.90; project-find-file's future history breaks with common-parent-directory

From: Dmitry Gutov <[email-masked]>
Date: Wed, 23 Aug 2023 03:27:01 +0300

On 21/08/2023 09:58, Juri Linkov wrote:
>>> Then maybe better to simply add only the relative file name for optimization?
>>> Like this
>>>            (add-to-history 'file-name-history
>>>                            (propertize file 'project-relative-name
>>>                             (file-relative-name file (project-root project)))))
>> Then it won't work in find-file (or might even break it).
> But find-file doesn't use the property 'project-relative-name'.

Yes, it just uses the absolute name. It won't be able to use the 
relative one.