]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/grep.el
Add rx.el support for numbered groups (Bug#8776).
[gnu-emacs] / lisp / progmodes / grep.el
index 3b819a149b2958a2d66147f6b46b185a0dfac8fc..db8e82193b340fdd4c5c6061350cc618d766ef8f 100644 (file)
@@ -698,7 +698,9 @@ This function is called from `compilation-filter-hook'."
        grep-hit-face)
   (set (make-local-variable 'compilation-error-regexp-alist)
        grep-regexp-alist)
-  (set (make-local-variable 'compilation-directory-matcher) nil)
+  ;; compilation-directory-matcher can't be nil, so we set it to a regexp that
+  ;; can never match.
+  (set (make-local-variable 'compilation-directory-matcher) '("\\`a\\`"))
   (set (make-local-variable 'compilation-process-setup-function)
        'grep-process-setup)
   (set (make-local-variable 'compilation-disable-input) t)