aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-02-28 17:26:00 +0000
committerEli Zaretskii2009-02-28 17:26:00 +0000
commit8f0e19afc870cd6a049f734f51db66bfa7fa55d0 (patch)
tree5b1e5c09a364683ffbf2a9b2e926af6dce83cde3
parent0a9564cb018d500e9b981769b2bd24d2c23ef26d (diff)
downloademacs-8f0e19afc870cd6a049f734f51db66bfa7fa55d0.tar.gz
emacs-8f0e19afc870cd6a049f734f51db66bfa7fa55d0.zip
(grep-process-setup) [windows-nt msdos]: Use "--color=always".
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/grep.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 41e7f1753ba..5bd2e9d3835 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-02-28 Eli Zaretskii <eliz@gnu.org>
2
3 * progmodes/grep.el (grep-process-setup) [windows-nt msdos]: Use
4 "--color=always".
5
12009-02-28 Glenn Morris <rgm@gnu.org> 62009-02-28 Glenn Morris <rgm@gnu.org>
2 7
3 * mail/rmailout.el (rmail-output-as-seen): Add autoload cookie. 8 * mail/rmailout.el (rmail-output-as-seen): Add autoload cookie.
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index b4bcc5c88a5..fa73f7f777a 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -407,7 +407,11 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'."
407 ;; `--color=auto' emits escape sequences on a tty rather than on a pipe, 407 ;; `--color=auto' emits escape sequences on a tty rather than on a pipe,
408 ;; thus allowing to use multiple grep filters on the command line 408 ;; thus allowing to use multiple grep filters on the command line
409 ;; and to output escape sequences only on the final grep output 409 ;; and to output escape sequences only on the final grep output
410 (setenv "GREP_OPTIONS" (concat (getenv "GREP_OPTIONS") " --color=auto")) 410 (setenv "GREP_OPTIONS"
411 (concat (getenv "GREP_OPTIONS")
412 ;; Windows and DOS pipes fail `isatty' detection in Grep.
413 " --color=" (if (memq system-type '(windows-nt ms-dos))
414 "always" "auto")))
411 ;; GREP_COLOR is used in GNU grep 2.5.1, but deprecated in later versions 415 ;; GREP_COLOR is used in GNU grep 2.5.1, but deprecated in later versions
412 (setenv "GREP_COLOR" "01;31") 416 (setenv "GREP_COLOR" "01;31")
413 ;; GREP_COLORS is used in GNU grep 2.5.2 and later versions 417 ;; GREP_COLORS is used in GNU grep 2.5.2 and later versions