]> git.eshelyaron.com Git - emacs.git/commitdiff
project-search: Pipe the list of files through 'file-regular-p'
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Apr 2023 23:08:48 +0000 (02:08 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 9 Apr 2023 23:09:45 +0000 (02:09 +0300)
* lisp/progmodes/project.el (project-search): Pipe the list of
files through 'file-regular-p' to skip directories (bug#62735).

lisp/progmodes/project.el

index 11228226592bd1940e5c0abeca2e8deddb97f67b..a18b918db62fa5b72b19e06c86d6fab9590f5cab 100644 (file)
@@ -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