[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 589959fb09d: project-search: Pipe the list of files through 'fi
From: |
Dmitry Gutov |
Subject: |
emacs-29 589959fb09d: project-search: Pipe the list of files through 'file-regular-p' |
Date: |
Sun, 9 Apr 2023 19:10:08 -0400 (EDT) |
branch: emacs-29
commit 589959fb09d8a8f60179e1cceca4c3777b8c7719
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
project-search: Pipe the list of files through 'file-regular-p'
* lisp/progmodes/project.el (project-search): Pipe the list of
files through 'file-regular-p' to skip directories (bug#62735).
---
lisp/progmodes/project.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 11228226592..a18b918db62 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1216,7 +1216,10 @@ To continue searching for the next match, use the
command \\[fileloop-continue]."
(interactive "sSearch (regexp): ")
(fileloop-initialize-search
- regexp (project-files (project-current t)) 'default)
+ regexp
+ ;; XXX: See the comment in project-query-replace-regexp.
+ (cl-delete-if-not #'file-regular-p (project-files (project-current t)))
+ 'default)
(fileloop-continue))
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 589959fb09d: project-search: Pipe the list of files through 'file-regular-p',
Dmitry Gutov <=