]> git.eshelyaron.com Git - emacs.git/commit
Support adjusting file-name-history to the current project
authorSpencer Baugh <sbaugh@janestreet.com>
Thu, 17 Aug 2023 19:41:04 +0000 (15:41 -0400)
committerDmitry Gutov <dmitry@gutov.dev>
Wed, 23 Aug 2023 02:28:20 +0000 (05:28 +0300)
commite3209923c3f8c61f22934b9e72ab8840e7d5b9ac
treec0446944acf26ec49be572f730b15b76687b99ed
parent73b24a41412eb97a9451a8310da0ebab379f7534
Support adjusting file-name-history to the current project

This adds project-file-history-behavior which has the effect described in
its docstring.  Implementing a sort of sharing of file-name-history
between projects.

* lisp/progmodes/project.el (project-file-history-behavior):
New option.  (bug#63829)
(project--transplant-file-name): Add.
(project--read-file-cpd-relative): Move history manipulations to
project--read-file-name.
(project--read-file-name): New function.  Refer to
project-file-history-behavior.
(project-find-file-in, project-find-dir): Use it.
(project-or-external-find-file): Bind the new option to t, to avoid
touching the external file names.

* etc/NEWS: Announce the new option.

Co-authored-by: Dmitry Gutov <dmitry@gutov.dev>
etc/NEWS
lisp/progmodes/project.el