From: Dmitry Gutov Date: Thu, 4 May 2017 15:26:46 +0000 (+0300) Subject: ; xref-collect-matches: Add a TODO X-Git-Tag: emacs-26.0.90~521^2~470 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f5ca518b9274e4abaecd1398cce6a24b77139ae3;p=emacs.git ; xref-collect-matches: Add a TODO --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index a12fa146203..9b6a560971c 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -920,6 +920,9 @@ IGNORES is a list of glob patterns." (let* ((grep-find-template (replace-regexp-in-string "" " -E" grep-find-template t t)) (grep-highlight-matches nil) + ;; TODO: Sanitize the regexp to remove Emacs-specific terms, + ;; so that Grep can search for the "relaxed" version. Can we + ;; do that reliably enough, without creating false negatives? (command (xref--rgrep-command (xref--regexp-to-extended regexp) files (expand-file-name dir)