From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35326: 26.1; vc-git-grep should pass -i like isearch Date: Mon, 24 Jun 2019 00:38:50 +0300 Organization: LINKOV.NET Message-ID: <87wohcyob9.fsf@mail.linkov.net> References: <87d0lheuhv.fsf@curie.anarc.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253745"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Antoine =?UTF-8?Q?Beaupr=C3=A9?= , 35326@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 23 23:42:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfAFX-0013lg-8e for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jun 2019 23:42:11 +0200 Original-Received: from localhost ([::1]:46838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfAFW-0006B3-7A for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jun 2019 17:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34975) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfAFP-00069e-Aj for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2019 17:42:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfAFO-0006x6-Cx for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2019 17:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfAFN-0006w0-P0 for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2019 17:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfAFN-000114-KM for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2019 17:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2019 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35326 X-GNU-PR-Package: emacs Original-Received: via spool by 35326-submit@debbugs.gnu.org id=B35326.15613261043868 (code B ref 35326); Sun, 23 Jun 2019 21:42:01 +0000 Original-Received: (at 35326) by debbugs.gnu.org; 23 Jun 2019 21:41:44 +0000 Original-Received: from localhost ([127.0.0.1]:55094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfAF5-00010K-HY for submit@debbugs.gnu.org; Sun, 23 Jun 2019 17:41:43 -0400 Original-Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]:59199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfAF3-000109-DC for 35326@debbugs.gnu.org; Sun, 23 Jun 2019 17:41:42 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 31293141A04; Sun, 23 Jun 2019 21:41:40 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com (100-96-91-148.trex.outbound.svc.cluster.local [100.96.91.148]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A176C141061; Sun, 23 Jun 2019 21:41:39 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sun, 23 Jun 2019 21:41:40 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trade-Imminent: 1abc44f92e8d1c34_1561326100030_3286867981 X-MC-Loop-Signature: 1561326100029:3273424533 X-MC-Ingress-Time: 1561326100029 Original-Received: from pdx1-sub0-mail-a96.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a96.g.dreamhost.com (Postfix) with ESMTP id 3141080C94; Sun, 23 Jun 2019 14:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=wF9iDr2V/BGIZJuEiRA6OWp+uZg=; b= 16QMbap96dH78tvzpcm/L3m2mKGbrowJTJIcHb5teGZkrr5auKtK5vt8JYjwsDKy CEo+zyec3jmGAGpxMiC5q5gaJMDnZldx8xeFyjIdVUo4nHNE/oKinkNNipFKAxrn i4/Fs1Ugkzv2DI+YHgqfs/b54mub1y0NrAeHEQL1pKk= Original-Received: from mail.jurta.org (m91-129-109-209.cust.tele2.ee [91.129.109.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a96.g.dreamhost.com (Postfix) with ESMTPSA id F134980C8C; Sun, 23 Jun 2019 14:41:34 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a96 In-Reply-To: (Lars Ingebrigtsen's message of "Sun, 23 Jun 2019 21:02:32 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddugddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrvddtleenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrddvtdelpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgepud X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161176 Archived-At: > Hm... The default grep command on my machine (Debian GNU/Linux stretch) > is "grep --color -nH --null -e", so it is case sensitive. > > Oh, lgrep does add the -i parameter: > > grep [...] --color -i -nH --null -e > compile-goto-error *.el > > Confusing. > >> Obviously, it's also possible for users to customize that variable >> themselves and add that string, but it's less than obvious they can do >> so because the help string doesn't document that magic escape sequence, >> nor does it document the *other* escape sequences supported by >> grep-expand-template (which is also probably a bug). > > Yes, the doc string should contain all the possible expansions, but I'm > not sure whether it should default to having , since grep and lgrep > default do different things. And does git grep support --color, which > will apparently also be inserted if you have ? > > - place to put the options like -i and --color. > > Weird system. grep-expand-template adds the option -i on this condition: (and case-fold-search (isearch-no-upper-case-p regexp t)) It's very like when isearch turns into case-insensitive search when the search string contains no upper-case letters. BTW, often there is also need to add the option -w to match whole words, but I have no idea how to enable this in grep templates.