diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2019-04-25 02:24:57 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2019-04-25 02:26:45 +0300 |
commit | f0e026a8495e49379b94e04826b6b8d0dd4b1990 (patch) | |
tree | ac084fde3b0c51e22a8e3e75f289aa8beb608ae4 /lisp/progmodes | |
parent | 62072bad4146598e9a88b158ef343b1d1a04a7d2 (diff) | |
download | emacs-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/progmodes')
-rw-r--r-- | lisp/progmodes/project.el | 2 |
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" |