]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow project-find-regexp'ing inside an ignored dir
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 2 May 2019 22:52:05 +0000 (01:52 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 2 May 2019 22:53:11 +0000 (01:53 +0300)
* lisp/progmodes/project.el (project-find-regexp): Don't pass
project's ignores to project--files-in-directory.  The FILES glob
should be enough, and we don't want to prohibit searching inside
ignored directories this way (it can be counter-intuitive).

lisp/progmodes/project.el

index 11a2ef40094cc081dd69841a9b6c36ca5b3d90f2..7c8ca15868e66525aa6f956366d33779f4cbbb2f 100644 (file)
@@ -355,7 +355,7 @@ requires quoting, e.g. `\\[quoted-insert]<space>'."
             (let ((dir (read-directory-name "Base directory: "
                                             nil default-directory t)))
               (project--files-in-directory dir
-                                           (project--dir-ignores pr dir)
+                                           nil
                                            (grep-read-files regexp))))))
     (project--find-regexp-in-files regexp files)))