]> git.eshelyaron.com Git - emacs.git/commit
Use current file name for more "other project" future history
authorSpencer Baugh <sbaugh@janestreet.com>
Wed, 23 Aug 2023 02:11:55 +0000 (05:11 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Wed, 23 Aug 2023 02:28:20 +0000 (05:28 +0300)
commit8933c1877dc467b683523062b3022824baccef17
tree53716542ad84e47a842dee656428101415881561
parente3209923c3f8c61f22934b9e72ab8840e7d5b9ac
Use current file name for more "other project" future history

In the previous commit we added support for using the current buffer's
file name as future history for project-find-file even when switching
to another project with project-switch-project.  Make this work for
project-find-dir and project-or-external-find-file too.

* lisp/progmodes/project.el (project--find-default-from): Add.
(project-find-file, project-or-external-find-file): Use
project--find-default-from with buffer-file-name.
(project-find-dir): Use project--find-default-from with
default-directory.
lisp/progmodes/project.el