From: Dmitry Gutov Date: Wed, 24 Apr 2019 23:24:57 +0000 (+0300) Subject: Fix project-find-regexp search for '--' X-Git-Tag: emacs-27.0.90~3099 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0e026a8495e49379b94e04826b6b8d0dd4b1990;p=emacs.git 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 . --- 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"