aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2019-04-25 02:24:57 +0300
committerDmitry Gutov2019-04-25 02:26:45 +0300
commitf0e026a8495e49379b94e04826b6b8d0dd4b1990 (patch)
treeac084fde3b0c51e22a8e3e75f289aa8beb608ae4
parent62072bad4146598e9a88b158ef343b1d1a04a7d2 (diff)
downloademacs-f0e026a8495e49379b94e04826b6b8d0dd4b1990.tar.gz
emacs-f0e026a8495e49379b94e04826b6b8d0dd4b1990.zip
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>.
-rw-r--r--lisp/progmodes/project.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index b8a58ed317b..11a2ef40094 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -391,7 +391,7 @@ pattern to search for."
391 (status nil) 391 (status nil)
392 (hits nil) 392 (hits nil)
393 (xrefs nil) 393 (xrefs nil)
394 (command (format "xargs -0 grep %s -nHE %s" 394 (command (format "xargs -0 grep %s -nHE -e %s"
395 (if (and case-fold-search 395 (if (and case-fold-search
396 (isearch-no-upper-case-p regexp t)) 396 (isearch-no-upper-case-p regexp t))
397 "-i" 397 "-i"