Add --color Grep option to the command dynamically
commit9b4b4a8355506a0253d8a4943e0a9aa87f9e92eb
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 26 Jun 2015 17:21:50 +0000 (26 20:21 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 27 Jun 2015 20:57:28 +0000 (27 23:57 +0300)
tree068efb98ea3c08db953b1989c26786254564cd50
parentda5e0050ac161bd9d665c4b406a95bee4f3b4085
Add --color Grep option to the command dynamically

* lisp/progmodes/grep.el (grep-template, grep-find-template):
Update the description for <C>.  (Bug#20728)
(grep-compute-defaults): Don't add the --color option to
grep-options.  Only add it to grep-command.
(grep-expand-keywords): Expand the env value opts into <C>.
(grep-expand-template): Replace cf in the env with the opts list,
that can include -i and --color.

* lisp/progmodes/xref.el (xref-collect-matches): Do not remove
"--color=always" from the template, because we don't have to.
etc/NEWS
lisp/progmodes/grep.el
lisp/progmodes/xref.el