From f5ca518b9274e4abaecd1398cce6a24b77139ae3 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 4 May 2017 18:26:46 +0300 Subject: [PATCH] ; xref-collect-matches: Add a TODO --- lisp/progmodes/xref.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5