]> git.eshelyaron.com Git - emacs.git/commit
* etc/NEWS: Mention it.
authorSpencer Baugh <sbaugh@janestreet.com>
Thu, 5 Sep 2024 13:56:50 +0000 (09:56 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 8 Sep 2024 11:23:54 +0000 (13:23 +0200)
commite6c4ca04f39c7aa4846749887150ebed3c5bb6ca
tree92a487ef74812c2b7323256ee3985d24cea11169
parent1e07fb9bd524d5bc795c32a89995abb6c3ff5884
* etc/NEWS: Mention it.

Add project-find-file-in-root (bug#73044)

Several users have asked me for a command which is just
find-file, but starting from the project root.  In large
projects, where project-files is expensive, this will have
substantially better performance than project-find-file.

Also, it allows opening files which aren't included in
project-files without paying the further cost of running
project--files-in-directory (which is what happens when passing
INCLUDE-ALL=t to project-find-file).

Also, it may help with user confusion about why
project-find-file doesn't behave like find-file (which I've
encountered a few times).

This command is equivalent to C-x p o C-x C-f, but it's nice to
be able to bind it to a specific key.

Overall, this is easy enough to provide, so let's just do that.

* lisp/progmodes/project.el (project-find-file-in-root): Add.

* etc/NEWS: Mention it.

(cherry picked from commit d879c40f68c078bdba15122e4e886a2052fbddf4)
etc/NEWS
lisp/progmodes/project.el