project-query-replace-regexp: Filter out non-regular files
* lisp/progmodes/project.el (project-query-replace-regexp): Filter out non-regular files (bug#55382).
This commit is contained in:
parent
6f69284ada
commit
db82347269
1 changed files with 6 additions and 1 deletions
|
@ -1092,7 +1092,12 @@ If you exit the `query-replace', you can later continue the
|
|||
(query-replace-read-args "Query replace (regexp)" t t)))
|
||||
(list from to))))
|
||||
(fileloop-initialize-replace
|
||||
from to (project-files (project-current t)) 'default)
|
||||
from to
|
||||
;; XXX: Filter out Git submodules, which are not regular files.
|
||||
;; `project-files' can return those, which is arguably suboptimal,
|
||||
;; but removing them eagerly has performance cost.
|
||||
(cl-delete-if-not #'file-regular-p (project-files (project-current t)))
|
||||
'default)
|
||||
(fileloop-continue))
|
||||
|
||||
(defvar compilation-read-command)
|
||||
|
|
Loading…
Add table
Reference in a new issue