GNU bug report logs - #35326
26.1; vc-git-grep should pass -i like isearch

Previous Next

Package: emacs;

Reported by: Antoine Beaupré <anarcat <at> orangeseeds.org>

Date: Fri, 19 Apr 2019 18:33:02 UTC

Severity: minor

Tags: fixed

Found in version 26.1

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Antoine Beaupré <anarcat <at> orangeseeds.org>, 35326 <at> 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
>> 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)))




This bug report was last modified 5 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.