diff options
| author | Dmitry Gutov | 2015-06-26 20:21:50 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-06-27 23:57:28 +0300 |
| commit | 9b4b4a8355506a0253d8a4943e0a9aa87f9e92eb (patch) | |
| tree | 068efb98ea3c08db953b1989c26786254564cd50 /etc | |
| parent | da5e0050ac161bd9d665c4b406a95bee4f3b4085 (diff) | |
| download | emacs-9b4b4a8355506a0253d8a4943e0a9aa87f9e92eb.tar.gz emacs-9b4b4a8355506a0253d8a4943e0a9aa87f9e92eb.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -883,6 +883,15 @@ word syntax, use `\sw' instead. | |||
| 883 | ** The `diff' command uses the unified format now. To restore the old | 883 | ** The `diff' command uses the unified format now. To restore the old |
| 884 | behavior, set `diff-switches' to `-c'. | 884 | behavior, set `diff-switches' to `-c'. |
| 885 | 885 | ||
| 886 | ** `grep-template' and `grep-find-template' values don't include the | ||
| 887 | --color argument anymore. It's added at the <C> place holder position | ||
| 888 | dynamically. | ||
| 889 | |||
| 890 | ** `grep-template' and `grep-find-template' values don't include the | ||
| 891 | --color argument anymore. It's added at the <C> place holder position | ||
| 892 | dynamically. Any third-party code that changes these templates should | ||
| 893 | be updated accordingly. | ||
| 894 | |||
| 886 | 895 | ||
| 887 | * Lisp Changes in Emacs 25.1 | 896 | * Lisp Changes in Emacs 25.1 |
| 888 | 897 | ||