Fix project-find-regexp search for '--'

* lisp/progmodes/project.el (project--find-regexp-in-files):
Add an explicit '-e' before the pattern.  Fixing the ability to
search for '--'.  Reported by Juri Linkov <juri@linkov.net>.
This commit is contained in:
Dmitry Gutov 2019-04-25 02:24:57 +03:00
parent 62072bad41
commit f0e026a849

View file

@ -391,7 +391,7 @@ pattern to search for."
(status nil)
(hits nil)
(xrefs nil)
(command (format "xargs -0 grep %s -nHE %s"
(command (format "xargs -0 grep %s -nHE -e %s"
(if (and case-fold-search
(isearch-no-upper-case-p regexp t))
"-i"