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
View this message in rfc822 format
> > I'm wondering how I would set my custom arguments when the vc-git-grep
> > function is called from another function. For example, the projectile
> > package defines projectile-grep, which eventually calls rgrep or
> > vc-git-grep [1] (depending on the user's choice).
>
> It looks like you'd have to do
>
> (let ((current-prefix-arg '(4)))
> (vc-git-grep ...))
I've set the prefix argument using the current-prefix-arg variable as
you mentioned:
(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).
Is there any way to set a default set of arguments in order to avoid typing them
when invoking the function?
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.