* lisp/progmodes/project.el (project--vc-list-files):
Prepend module names to files when project-files-relative-names is
non-nil (bug#71538).
(cherry picked from commit
2dae603c4140a0a449b2ddaf572fe94de3908f31)
(mapcar
(lambda (module)
(when (file-directory-p module)
- (project--vc-list-files
- (concat default-directory module)
- backend
- extra-ignores)))
+ (let ((sub-files
+ (project--vc-list-files
+ (concat default-directory module)
+ backend
+ extra-ignores)))
+ (if project-files-relative-names
+ (mapcar (lambda (file)
+ (concat (file-name-as-directory module) file))
+ sub-files)
+ sub-files))))
submodules)))
(setq files
(apply #'nconc files sub-files))))