GNU bug report logs -
#32549
Allow passing custom options to vc-git-grep
Previous Next
Reported by: Federico Tedin <federicotedin <at> gmail.com>
Date: Mon, 27 Aug 2018 23:04:01 UTC
Severity: wishlist
Tags: fixed
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 32549 <at> debbugs.gnu.org (full text, mbox):
Federico Tedin <federicotedin <at> gmail.com> writes:
> (let ((current-prefix-arg '(4)))
> (vc-git-grep "something" "*.el" "."))
>
> And then I also tried:
>
> (let ((current-prefix-arg '(4)))
> (projectile-grep))
>
> In both cases, I am prompted for the full git-grep command (and
> nothing else).
Doesn't projectile-grep prompt you for a regexp? I don't have it
installed here, but it looks like you have to pass a non-nil ARG to get
prompted for filenames, i.e.,
(let ((current-prefix-arg '(4)))
(projectile-grep nil t))
> Is there any way to set a default set of arguments in order to avoid
> typing them when invoking the function?
Not sure I follow, when you pass "something" and "*.el" to the function,
those get inserted into the default command so you don't have to type
them interactively.
This bug report was last modified 6 years and 344 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.