]> git.eshelyaron.com Git - emacs.git/commit
Bring back the project--value-in-dir logic
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 9 Dec 2022 16:15:49 +0000 (18:15 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 9 Dec 2022 16:19:36 +0000 (18:19 +0200)
commitd268ab1c5d749d0f15474f9d200bc0356ad85765
treee11c972abc390eb4e78f89b964b46f64e8e8e085
parentfa36b5ddf58d7b0ef47bd908eb49b3ac8964311d
Bring back the project--value-in-dir logic

Essentialy revert commit 2389158a31b4a12, restoring the changes
and fixing the conflicts.  Motivated by the problem brought up in
bug#59722 (behavior of project-find-files/regexp when switching
projects).  We should find other ways to improve performance.

* lisp/progmodes/project.el
(project--value-in-dir, project--vc-merge-submodules-p): Restore.
(project-try-vc, project-files, project--vc-list-files)
(project-ignores, project-buffers): Use.

* test/lisp/progmodes/project-tests.el
(project-vc-supports-project-in-different-dir): New test.

* test/lisp/progmodes/project-resources/.dir-locals.el:
* test/lisp/progmodes/project-resources/foo:
* test/lisp/progmodes/project-resources/etc: New files.
lisp/progmodes/project.el
test/lisp/progmodes/project-resources/.dir-locals.el [new file with mode: 0644]
test/lisp/progmodes/project-resources/etc [new file with mode: 0644]
test/lisp/progmodes/project-resources/foo [new file with mode: 0644]
test/lisp/progmodes/project-tests.el