]> git.eshelyaron.com Git - emacs.git/commitdiff
; xref-collect-matches: Add a TODO
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 4 May 2017 15:26:46 +0000 (18:26 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 4 May 2017 15:27:15 +0000 (18:27 +0300)
lisp/progmodes/xref.el

index a12fa14620328bca7c19ec6e616ed49aa4199126..9b6a560971c092e873084bddd73b0b6d1314966d 100644 (file)
@@ -920,6 +920,9 @@ IGNORES is a list of glob patterns."
   (let* ((grep-find-template (replace-regexp-in-string "<C>" "<C> -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)