unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Federico Tedin <federicotedin@gmail.com>
To: 32549@debbugs.gnu.org
Subject: bug#32549: Allow passing custom options to vc-git-grep
Date: Mon, 27 Aug 2018 23:55:36 -0300	[thread overview]
Message-ID: <CAA8GjPnpR_RQbFKPV2SWdFfaAkt4GsqVWEBe6o7vdMyh_fZTZg@mail.gmail.com> (raw)
In-Reply-To: <875zzvv1kd.fsf@gmail.com>

> Does C-u help?  From the docstring:
>
>     With C-u prefix, you can edit the constructed shell command line
>     before it is executed.
>     With two C-u prefixes, directly edit and run ‘grep-command’.

You're right! With C-u, I am eventually prompted for the full git-grep
arguments, This is useful
when manually invoking the command, but now 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).

[1] https://github.com/bbatsov/projectile/blob/master/projectile.el#L2757





  reply	other threads:[~2018-08-28  2:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-27 23:03 bug#32549: Allow passing custom options to vc-git-grep Federico Tedin
2018-08-27 23:20 ` Noam Postavsky
2018-08-28  2:55   ` Federico Tedin [this message]
2018-08-28  3:52     ` Noam Postavsky
2018-08-28 23:01       ` Federico Tedin
2018-08-28 23:14         ` Noam Postavsky
2018-08-28 23:31           ` Federico Tedin
2018-08-29  0:45             ` Noam Postavsky
2018-08-29  0:54               ` Federico Tedin
2018-09-01 21:55                 ` Federico Tedin
2018-09-04 23:03                   ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA8GjPnpR_RQbFKPV2SWdFfaAkt4GsqVWEBe6o7vdMyh_fZTZg@mail.gmail.com \
    --to=federicotedin@gmail.com \
    --cc=32549@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).