From f0e026a8495e49379b94e04826b6b8d0dd4b1990 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 25 Apr 2019 02:24:57 +0300 Subject: [PATCH] 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 . --- lisp/progmodes/project.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2