|
From: | Dmitry Gutov |
Subject: | bug#58447: [PATCH] In project-find-file, add absolute file name to history |
Date: | Wed, 14 Dec 2022 20:45:13 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 14/12/2022 18:47, Augusto Stoffel wrote:
On the other hand, your trick works by accident. If you switch between unrelated projects, then 'C-x p f M-p' brings up a non-existing file. One might say each project should have its own history, but then it's not clear whether/when equally named projects in different locations should count as "the same" project.
Perhaps the first step to resolving all this is for project-find-file to use a different history variable than find-file.
Which makes sense, given that one (usually) uses relative file names, and the other -- absolute ones.
Maybe project--read-file-absolute could continue using the current variable, too.
As a result, all projects will share history, for good and bad. Perhaps next we could do something about that, e.g. if the history iteration could allow pre-filtering, we could also filter out non-existing files.
[Prev in Thread] | Current Thread | [Next in Thread] |