[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a1dde6b: Put "--color" before the other options in
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] master a1dde6b: Put "--color" before the other options in grep-command |
Date: |
Sun, 28 Jun 2015 01:30:13 +0000 |
branch: master
commit a1dde6b50fb8601b2a3ac333cc43569622a18500
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Put "--color" before the other options in grep-command
* lisp/progmodes/grep.el (grep-compute-defaults): Put "--color"
before the other options in grep-command (bug#20912).
---
lisp/progmodes/grep.el | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index e20e5bd..639d8d9 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -579,7 +579,7 @@ This function is called from `compilation-filter-hook'."
" -e"))))
(unless grep-command
(setq grep-command
- (format "%s %s %s " grep-program grep-options
+ (format "%s %s %s " grep-program
(or
(and grep-highlight-matches
(grep-probe grep-program
@@ -587,7 +587,8 @@ This function is called from `compilation-filter-hook'."
nil 1)
(if (eq grep-highlight-matches 'always)
"--color=always" "--color"))
- ""))))
+ "")
+ grep-options)))
(unless grep-template
(setq grep-template
(format "%s <X> <C> %s <R> <F>" grep-program grep-options)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a1dde6b: Put "--color" before the other options in grep-command,
Dmitry Gutov <=