summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2019-04-25 02:24:57 +0300
committerDmitry Gutov <dgutov@yandex.ru>2019-04-25 02:26:45 +0300
commitf0e026a8495e49379b94e04826b6b8d0dd4b1990 (patch)
treeac084fde3b0c51e22a8e3e75f289aa8beb608ae4 /lisp
parent62072bad4146598e9a88b158ef343b1d1a04a7d2 (diff)
downloademacs-f0e026a8495e49379b94e04826b6b8d0dd4b1990.tar.gz
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>.
Diffstat (limited to 'lisp')
-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."
(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"