GNU bug report logs -
#78099
[PATCH] Make 'project-remember-project' interactive
Previous Next
Full log
View this message in rfc822 format
Dmitry Gutov <dmitry <at> gutov.dev> writes:
> Hi!
>
> On 27/04/2025 23:18, Elijah Gabe Pérez wrote:
>> Sometimes when creating a new project it is not added to project list.
>> AFAIK the only way to do it is using `project-remember-projects-under'
>> or `project-switch-project' but they are uncomfortable to use when you
>> just want to remember the current project you're in.
>
> Please clarify the usage scenario.
For example, visiting a new file (usually with `find-file') or importing
and opening a new project, you cannot be sure if it is already in the
project--list (or it was not added to project-list) unless you do
`project-switch-project' (which automatically index it), projectile have
a similar behavior (projectile-auto-update-cache), but it's very slow, so
one way i had to mimic this is this way.
A good use case would be adding it to `find-file-hook', so one would not
have to use `project-switch-project' for each new recent project.
Or for example if you are working in a remote project (not indexed) in
the current file you are in, instead using `project-remember-projects-under'
you can just type: M-x project-remember-project,
and in the current project you are working on gets indexed.
> Doesn't it help to visit it just once?
I don't understand this question well.
--
- E.G via GNU Emacs and Org.
This bug report was last modified 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.