emacs-devel
[Top][All Lists]
Advanced

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

Re: project-find-file: switch to include non-tracked files


From: Manuel Uberti
Subject: Re: project-find-file: switch to include non-tracked files
Date: Mon, 4 Oct 2021 15:50:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 04/10/21 15:44, Stefan Kangas wrote:
In projectile, they have:

     (projectile-find-file &optional INVALIDATE-CACHE)

     Jump to a project’s file using completion.
     With a prefix arg INVALIDATE-CACHE invalidates the cache first.

But their default mode of operation is to show all files, not just
tracked ones, so I think they have more use for a cache.

At the top of project.el I see this:

;; * Reliably cache the list of files in the project, probably using
;;   filenotify.el (if supported) to invalidate.  And avoiding caching
;;   if it's not available (manual cache invalidation is not nice).

So maybe going for manual cache invalidation is not the best approach?

--
Manuel Uberti
www.manueluberti.eu



reply via email to

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