Add imenu support to package-menu-mode

* lisp/vc/vc-git.el (vc-git-grep-template): Include <C> in
template to be more consistent with lgrep/rgrep (bug#35326).  This
will introduce the --color and -i flags to the "git grep" command.

Copyright-paperwork-exempt: yes
This commit is contained in:
Antoine Beaupré 2019-06-25 12:58:36 +02:00 committed by Lars Ingebrigtsen
parent 8c17995f7f
commit ba476dc975

View file

@ -180,9 +180,10 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
:type '(coding-system :tag "Coding system to decode Git log output")
:version "25.1")
(defcustom vc-git-grep-template "git --no-pager grep -n -e <R> -- <F>"
(defcustom vc-git-grep-template "git --no-pager grep -n <C> -e <R> -- <F>"
"The default command to run for \\[vc-git-grep].
The following place holders should be present in the string:
<C> - place to put the options like -i.
<F> - file names and wildcards to search.
<R> - the regular expression searched for."
:type 'string