]> git.eshelyaron.com Git - emacs.git/commit
project--completing-read-strict: Move some common processing here
authorDmitry Gutov <dmitry@gutov.dev>
Tue, 29 Oct 2024 02:27:00 +0000 (04:27 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Oct 2024 09:59:55 +0000 (10:59 +0100)
commit225cd6d72a1b71b5db41a1bb8e9806aab1d15291
treed8ad6ad3497b4fd931c318e663c559bf76c5b31a
parent601ce9038b2b055c3a6001ee74bdd9da6204f4b4
project--completing-read-strict: Move some common processing here

* lisp/progmodes/project.el (project--completing-read-strict):
Add new optional argument, COMMON-PARENT-DIRECTORY.  Move the
absolute->relative processing of MB-DEFAULT and the contents of
HIST here.
(project--read-file-cpd-relative): From here.  So that
'project--read-file-absolute' can also benefit from those
conversions.
(project--read-file-absolute): Pass the new argument.
(project-read-file-name-function): Update value tags.

(cherry picked from commit c0cb369ab188ea7ae0d3271d19c0cecce7be0329)
lisp/progmodes/project.el