From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "Antoine Beaupré" <anarcat@orangeseeds.org>, 35326@debbugs.gnu.org
Subject: bug#35326: 26.1; vc-git-grep should pass -i like isearch
Date: Thu, 27 Jun 2019 23:31:01 +0300 [thread overview]
Message-ID: <87mui2rcsa.fsf@mail.linkov.net> (raw)
In-Reply-To: <m3v9wuexr3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 25 Jun 2019 12:59:44 +0200")
>> PS: Regarding -w that I proposed previously, I could create
>> a separate request, but here is a preliminary version:
>
> [...]
>
>> + (when grep-word-search
>> + (push "-w" opts))
>
> Hm... I always just say \bfoo\b when I want the word-ish version, so I
> don't know whether this really warrants a new command.
OK, a new request could be created later on more demand.
Meanwhile, I'm using this short snippet in ~/.emacs:
(defun wrgrep ()
"Word-based version of `rgrep'.
Modifies the grep-find template to add the option `-w' that matches whole words."
(interactive)
(let ((grep-host-defaults-alist nil)
(grep-find-template
(replace-regexp-in-string "<C>" "-w \\&" grep-find-template)))
(call-interactively 'rgrep)))
next prev parent reply other threads:[~2019-06-27 20:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-19 18:10 bug#35326: 26.1; vc-git-grep should pass -i like isearch Antoine Beaupré
2019-06-23 19:02 ` Lars Ingebrigtsen
2019-06-23 21:38 ` Juri Linkov
2019-06-23 21:46 ` Lars Ingebrigtsen
2019-06-24 20:45 ` Juri Linkov
2019-06-25 10:59 ` Lars Ingebrigtsen
2019-06-27 20:31 ` Juri Linkov [this message]
2019-06-25 11:00 ` Lars Ingebrigtsen
2019-06-25 13:03 ` Antoine Beaupré
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=87mui2rcsa.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=35326@debbugs.gnu.org \
--cc=anarcat@orangeseeds.org \
--cc=larsi@gnus.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).