[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 604724e: (xref-collect-matches): Use '-E' together
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] master 604724e: (xref-collect-matches): Use '-E' together with '-e' |
Date: |
Fri, 3 Feb 2017 01:12:14 +0000 (UTC) |
branch: master
commit 604724e49d7b44dc663ad941998a0a44aa4fc178
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
(xref-collect-matches): Use '-E' together with '-e'
* lisp/progmodes/xref.el (xref-collect-matches): Use '-E'
together with '-e', as suggested by Noam Postavsky
(http://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00780.html).
---
lisp/progmodes/xref.el | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index a507755..a8933b0 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -918,11 +918,7 @@ IGNORES is a list of glob patterns."
(grep-compute-defaults)
(defvar grep-find-template)
(defvar grep-highlight-matches)
- ;; 'grep -E -foo' results in 'grep: oo: No such file or directory'.
- ;; while 'grep -e -foo' inexplicably doesn't.
- (when (eq (aref regexp 0) ?-)
- (setq regexp (concat "\\" regexp)))
- (let* ((grep-find-template (replace-regexp-in-string "-e " "-E "
+ (let* ((grep-find-template (replace-regexp-in-string "<C>" "<C> -E"
grep-find-template t t))
(grep-highlight-matches nil)
(command (xref--rgrep-command (xref--regexp-to-extended regexp)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 604724e: (xref-collect-matches): Use '-E' together with '-e',
Dmitry Gutov <=