bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58447: [PATCH] In project-find-file, add absolute file name to histo


From: Augusto Stoffel
Subject: bug#58447: [PATCH] In project-find-file, add absolute file name to history
Date: Wed, 14 Dec 2022 17:47:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

On Tue, 13 Dec 2022 at 19:28, Juri Linkov wrote:

> This makes sense.  OTOH, sometimes such a need arises to revisit
> the same project-relative file in another directory tree
> with a similar file structure.  For example, in the directory
> with the Emacs master branch visit 'C-x p f lisp/progmodes/project.el'.
> Then revisit the same file in the directory with the emacs-29 branch
> with 'C-x p f M-p'.

This is an interesting trick.  I have a somewhat related situation: for
some projects, I edit code locally but I can only run it in a remote
(and bigger) machine.  So I have some commands to go back and forth
between the two copies, sync them up, etc.

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.

Support for "sibling projects" like those would be a interesting but
rather subtle feature that needs to be well thought out.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]