Commit 90439906 authored by Juri Linkov's avatar Juri Linkov

* lisp/progmodes/grep.el (grep-process-setup): Fix comments.

Fixes: debbugs:8084
parent ecfc0a49
2011-09-05 Juri Linkov <>
* progmodes/grep.el (grep-process-setup): Fix comments (bug#8084).
2011-09-05 Juri Linkov <>
* progmodes/grep.el (grep-filter): Avoid incomplete processing by
......@@ -446,9 +446,10 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
(when (eq grep-highlight-matches 'auto-detect)
(unless (or (eq grep-highlight-matches 'auto-detect)
;; Uses font-lock to parse color escapes. (Bug#8084)
(null font-lock-mode)
(null grep-highlight-matches))
(null grep-highlight-matches)
;; Don't output color escapes if they can't be
;; highlighted with `font-lock-face' by `grep-filter'.
(null font-lock-mode))
;; `setenv' modifies `process-environment' let-bound in `compilation-start'
;; Any TERM except "dumb" allows GNU grep to use `--color=auto'
(setenv "TERM" "emacs-grep")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment