diff options
| author | Stefan Monnier | 2025-12-31 00:12:42 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-12-31 00:12:59 -0500 |
| commit | c12b9edcd4198c4147546229a062683322deca40 (patch) | |
| tree | 1232430d53f5f986f150573861823b695852dbfe /lib/malloc/scratch_buffer_set_array_size.c | |
| parent | 4473b117973f561b8b7a33d6adeabaafe0bac7b3 (diff) | |
| download | emacs-c12b9edcd4198c4147546229a062683322deca40.tar.gz emacs-c12b9edcd4198c4147546229a062683322deca40.zip | |
project-vc: Provide default implementation of `project-list-files`
Rework the implementation of `project-files<vc>` so as to
delegate more to the `project-list-files` operation, including
the default implementation.
This can change the behavior in some cases, because it changes
which ignore settings apply where and also it can now use
a dedicated VC backend implementation even for directories
that are outside of the project's root. But the effect should
hopefully be marginal and rather positive by making the behavior
more "regular".
* lisp/progmodes/project.el (project-vc--backend): New function.
(project-files) <vc>: Use it. Call VC's `project-list-files` operation
for all dirs with a backend and remove the `vc-not-supported` fallback.
Inline the `project--dir-ignores` call.
(vc-default-project-list-files): New function, extracted from
`project-files<vc>`.
(vc-git-project-list-files): Use it instead of signaling `vc-not-supported`.
(project--vc-ignores): New function, extracted from `project-ignores<vc>`.
Remove the `vc-not-supported` since the operation has a default
implementation. Use DIR's `ignore-completion-table` regardless
if we're at the root of the project.
(project-ignores) <vc>: Use it.
Diffstat (limited to 'lib/malloc/scratch_buffer_set_array_size.c')
0 files changed, 0 insertions, 0 deletions