[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20728: 25.0.50; grep and grep-find templates should have a place hol
From: |
Juri Linkov |
Subject: |
bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument |
Date: |
Sat, 06 Jun 2015 01:17:52 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) |
> We'll still need that placeholder in grep-find-template (and probably in
> grep-template, for consistency).
>
> Regarding M-x grep, I would rather leave it alone for now, because
> otherwise, %s or not, that would call for renaming the variable
> grep-command, and grep-template is already taken.
There is also grep-find-command used by grep-find.
> Another option would be to perform the substitution with regexp in
> grep-default-command, and it's pretty hairy already.
Since there is a lot of %s-substitutions in grep-compute-defaults
that produce command lines depending on many customizations,
yet another option is to let-bind the variables grep-command,
grep-find-command, grep-template, grep-find-template in your function,
then call grep-compute-defaults with a new value of grep-highlight-matches,
and then get new command lines without the --color option from
these local bindings to run them and parse the output programmatically.
In case when users customize grep-highlight-matches interactively,
its defcustom should compute new command lines using grep-compute-defaults.
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, (continued)
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Eli Zaretskii, 2015/06/04
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/04
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Eli Zaretskii, 2015/06/04
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/04
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Eli Zaretskii, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Eli Zaretskii, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Eli Zaretskii, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/05
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument,
Juri Linkov <=
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/06
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Juri Linkov, 2015/06/06
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/07
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Juri Linkov, 2015/06/09
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/10
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Juri Linkov, 2015/06/10
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/11
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Juri Linkov, 2015/06/11
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Dmitry Gutov, 2015/06/21
- bug#20728: 25.0.50; grep and grep-find templates should have a place holder for the --color argument, Juri Linkov, 2015/06/22