GNU bug report logs - #64140
29.0.91; C-u M-x grep doesn't work correctly after M-x vc-git-grep

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Daniel Martín <mardani29@HIDDEN>; dated Sun, 18 Jun 2023 00:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 16 Mar 2025 03:36:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 23:36:56 2025
Received: from localhost ([127.0.0.1]:44646 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tteo3-0007hi-EE
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 23:36:56 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:45332)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1ttenz-0007ge-TJ
 for 64140 <at> debbugs.gnu.org; Sat, 15 Mar 2025 23:36:52 -0400
DKIM-Signature: a=rsa-sha256;
 b=dr36TYfKs6hSA4pL0QPHQIl/Pz03b04n6k4ZxdMOFDT9ey/QjgK3a/TB0mOVfePY1ad7AnE/cKzjP0+XtdRsUlDbtSG8cD04A7d4waWhm9fTacPgNodwMpjAd4DLHLzEWN9BljuX2t1imt9TywfYIpSztjsBcRSuSZHShW0TvfYQfkBtLzoE980Ac6fm+GtHtcCATaN8S07s04AsR9WX5vJSNjAiaEN1tz1g4deB9GmuuXRPrXAYBWAnuH9fFeH9XqG+uSu7FXy/3pr9sMsqC4kuDnC3o3VH2e1IyR+91S8H58tVSkdrp5Nh2r0ngBnN8xq41UpxebHWfT/ENO8wtQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=MK/ovjICN0zXiP6AFgQVDjtEAIYonvFR5TEDvY34QF8=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=GtPp8kS7n/vxjquQSCKL+i4fy5KwNDonzjMl8isNNrlJwIKspUyReCTG4qg2rp8W+lUWo2T5ksDSQCcE+oKZlespen/SJJG1BJVoZm/8xNX1csPGLIHIWg4ypgha7//y0kxekOZmD1hbdbnQONACQlnjKl5iD5OhoFVMS8Wk6n+wIOUlY17qnMatvFQVAZRKFCqbMcAD1l8g3a7Mf7bgOnw7wopw5DFg975VU644BYZqRujk/EsInYe8Dfa8RmS5jsgq+UXlQMFPorXL81Fk0mgzVZE+JRXzQbbyosFAXsXejymrFL/ajYvh5ha+EtcAAc7dd8CYbGcZWMZqb/eFdA==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=MK/ovjICN0zXiP6AFgQVDjtEAIYonvFR5TEDvY34QF8=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 64140 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -334069217; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 16 Mar 2025 03:36:43 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 556F17ED0CF; Sun, 16 Mar 2025 11:36:40 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
In-Reply-To: <86frjey3er.fsf@HIDDEN>
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
 <87r0301c5a.fsf@HIDDEN> <86o6y4ypdw.fsf@HIDDEN>
 <87wmcqpx4p.fsf@HIDDEN> <86frjey3er.fsf@HIDDEN>
Date: Sun, 16 Mar 2025 11:36:40 +0800
Message-ID: <871puxmyt3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org, mardani29@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)

Hello,

On Sat 15 Mar 2025 at 12:49pm +02, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton@HIDDEN>
>> Cc: 64140 <at> debbugs.gnu.org,  mardani29@HIDDEN
>> Date: Sat, 15 Mar 2025 15:32:22 +0800
>>
>> Hello,
>>
>> On Fri 14 Mar 2025 at 10:42am +02, Eli Zaretskii wrote:
>>
>> > That could be okay, but is not the most useful way of using Grep
>> > history in git grep commands.  A more useful way would be to allow the
>> > user to reuse Grep history in git grep commands by modifying them to
>> > become valid command lines.  Because I think it would be extremely
>> > useful to be able to run a "git grep" command that searches for the
>> > same pattern as a previous Grep command, and vice versa.
>>
>> Yes, you're right, that would be very useful.
>>
>> I guess that we should say that grep owns the history variable, so
>> vc-git-grep should be responsible for performing the transformations in
>> either direction, when using the history variable for prompting, and
>> when saving to it?
>
> Yes, something like that.

Thanks, I'll look into implementing this at some point, if someone else
doesn't get there first.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 15 Mar 2025 10:49:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 06:49:45 2025
Received: from localhost ([127.0.0.1]:39023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttP5N-0005C2-0y
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 06:49:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35608)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttP5K-0005BW-A0
 for 64140 <at> debbugs.gnu.org; Sat, 15 Mar 2025 06:49:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttP5D-00034l-Sh; Sat, 15 Mar 2025 06:49:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=xJX95TKOI2WuPYFFm8ld8xBjLG/7sJHuNOGip5jEGaY=; b=bX87ok8aBvTC
 mqwb7y9CRP6ECVfi28unZkWbTaDUdUhZmxw60CdjgTDyXKaWDIIgDkFwadfOFYyPcgcOBTwMTcCyc
 usIrF/8r/1IpVZ5swEnLz0d0mv5KoRxNZu5LFz4gH4WvMEgpbuEzcpE5IrzjqH70J3cXDkSep+ZH0
 R8szwEmZEkA3eT0BEq+FUB6S2f/Getk+QQwwVIdgUlYXicwfWF55CUVabGuAr2xMM1yVoAJ2uonwb
 qOBSajbTvEoEbwNftWMsmcBe/rA5fkWBpuXkai2WsvXaPJKnKl96IloXfJUdjlEk2bRhwswFnBMaD
 9yeAH+NMzfn3kKgXS+6WXw==;
Date: Sat, 15 Mar 2025 12:49:32 +0200
Message-Id: <86frjey3er.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87wmcqpx4p.fsf@HIDDEN> (message from Sean
 Whitton on Sat, 15 Mar 2025 15:32:22 +0800)
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
 <87r0301c5a.fsf@HIDDEN> <86o6y4ypdw.fsf@HIDDEN>
 <87wmcqpx4p.fsf@HIDDEN>
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org, mardani29@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 64140 <at> debbugs.gnu.org,  mardani29@HIDDEN
> Date: Sat, 15 Mar 2025 15:32:22 +0800
> 
> Hello,
> 
> On Fri 14 Mar 2025 at 10:42am +02, Eli Zaretskii wrote:
> 
> > That could be okay, but is not the most useful way of using Grep
> > history in git grep commands.  A more useful way would be to allow the
> > user to reuse Grep history in git grep commands by modifying them to
> > become valid command lines.  Because I think it would be extremely
> > useful to be able to run a "git grep" command that searches for the
> > same pattern as a previous Grep command, and vice versa.
> 
> Yes, you're right, that would be very useful.
> 
> I guess that we should say that grep owns the history variable, so
> vc-git-grep should be responsible for performing the transformations in
> either direction, when using the history variable for prompting, and
> when saving to it?

Yes, something like that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 15 Mar 2025 07:32:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 03:32:35 2025
Received: from localhost ([127.0.0.1]:38428 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttM0Z-0005EU-Fs
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 03:32:35 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:37092)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1ttM0W-0005E6-3v
 for 64140 <at> debbugs.gnu.org; Sat, 15 Mar 2025 03:32:32 -0400
DKIM-Signature: a=rsa-sha256;
 b=I64BPYh2L5XuQfbrNCATo+wQ4ffPo4E6spQip23ZyrYZWZMkBoBLMPRaZaR/xoseMHtRjjwQY8G4ZusVQFfJw1eK5yyM2UlLozdlHwN0xr7T40aZ9g8kCQvT85IcbArLeNTnd3rcELaQKXebfcMZpZDOijHTTKnH/wDLnPnwNwIb5NZtriHg8Apt/OfPD8o0QlHVmD7zjYh5Mz2dZMjUHctM+PkGUEj8+FZO4E6tBzLi1uiHAq4tb9XoIovPzmg9JlcYNaZi5JzzV+5BmOKRM/9CrEI/RNF5cUi/4XZzuRbCp+yWKuhF1T8sMLaCSlpt74WTn4TxcW/3S9QFFFE3zQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=nbvpXMOEEWsrBHPxWGCZ3abqER3vix7gAzFxCzkh+Rc=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=rV+KlKEhDXWE9Zfihjf6z4WRiInQCMT5BH2P4K9HOyYL5jgw+C+h1Cb5otEQKsnbEMfPUF2i4z/YucXvIopPq9lYpGzxSU9AbKUuD6Ce9jTPjN1p3NFHmB4GlTu+1gzB4yjvYixb4n/RK05GkJnrCQXDAluk4NavQofkJSHsHDu3yt6pMmkUyZYmAVVmhJZekYbQPkkMXuuCEJDGWwpxmfAFpsXbMagfNg4INgLjEt07do+CE78wmHSgjiULHR7YB/zG++gPfXP64hgeasxTFCg5aXb9CxCWlS702haR6Wz8Dv6xVGbOKdObdIkhYioxjGdcHaynAAfRmwQj7fGXoA==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=nbvpXMOEEWsrBHPxWGCZ3abqER3vix7gAzFxCzkh+Rc=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 64140 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 791207165; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 15 Mar 2025 07:32:24 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 177057ED0CF; Sat, 15 Mar 2025 15:32:22 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
In-Reply-To: <86o6y4ypdw.fsf@HIDDEN>
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
 <87r0301c5a.fsf@HIDDEN> <86o6y4ypdw.fsf@HIDDEN>
Date: Sat, 15 Mar 2025 15:32:22 +0800
Message-ID: <87wmcqpx4p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org, mardani29@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)

Hello,

On Fri 14 Mar 2025 at 10:42am +02, Eli Zaretskii wrote:

> That could be okay, but is not the most useful way of using Grep
> history in git grep commands.  A more useful way would be to allow the
> user to reuse Grep history in git grep commands by modifying them to
> become valid command lines.  Because I think it would be extremely
> useful to be able to run a "git grep" command that searches for the
> same pattern as a previous Grep command, and vice versa.

Yes, you're right, that would be very useful.

I guess that we should say that grep owns the history variable, so
vc-git-grep should be responsible for performing the transformations in
either direction, when using the history variable for prompting, and
when saving to it?

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 14 Mar 2025 08:42:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 04:42:52 2025
Received: from localhost ([127.0.0.1]:60074 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tt0d1-0005VA-Q5
	for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 04:42:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45794)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tt0cy-0005Ur-9v
 for 64140 <at> debbugs.gnu.org; Fri, 14 Mar 2025 04:42:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tt0cr-0007Jq-6a; Fri, 14 Mar 2025 04:42:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=OttxKNUJzWP2zcdwJaI7hF4oUcL3KkOE1Tc3oUfenpA=; b=SGRJRblwEP+x
 ijxwlxlYF4wjx+nbfzNymYQ8xiUjI0RN+Iy+xL4ZjfFZ2rzCZNNDGdcl0ggYg264SNAzLHaSlufSE
 UE9JR0zAneW+0CUyEWcc/qiRYOdD5dEW92SnhKf2wXMvvsXZSkE7IFVDLzXcjuqW53fpLBv+55R/7
 i37Ec86mPQcGy+ILHmiZNfP+N9V2uhcrf9HwmTgKu/x6oDDZdtJie53oWj8AbYbzb6pp6KGjXQuLp
 hF9juZlvGR2fG/uMfFYlSe3h/Lsq2MO46lIQ8SPs6ODBXBYqiaES0UrvulbU/3JQvcobutQbZL/as
 6Bd5a/CM8RrnTPLlxrxfJA==;
Date: Fri, 14 Mar 2025 10:42:35 +0200
Message-Id: <86o6y4ypdw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87r0301c5a.fsf@HIDDEN> (message from Sean
 Whitton on Fri, 14 Mar 2025 12:14:57 +0800)
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
 <87r0301c5a.fsf@HIDDEN>
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org, mardani29@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 64140 <at> debbugs.gnu.org
> Date: Fri, 14 Mar 2025 12:14:57 +0800
> 
> Hello,
> 
> "git --no-pager char_can_wrap_before *.c" doesn't make any sense at all
> -- it's not a valid git command, it's not sensible arguments to 'git
> grep', it's not valid arguments to grep (obviously).

But it could be processed in trivial ways to yield valid "git grep"
arguments, no?  Like this:

  git --no-pager grep char_can_wrap_before -- *.c

> I think that vc-git-grep should use a separate history variable, and I
> don't think it's too late to change it, because it fixes saving this
> nonsensical thing.
> 
> So I'd like to go ahead and do that, if there are no objections.

That could be okay, but is not the most useful way of using Grep
history in git grep commands.  A more useful way would be to allow the
user to reuse Grep history in git grep commands by modifying them to
become valid command lines.  Because I think it would be extremely
useful to be able to run a "git grep" command that searches for the
same pattern as a previous Grep command, and vice versa.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 14 Mar 2025 04:15:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 00:15:09 2025
Received: from localhost ([127.0.0.1]:59316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tswRx-0004Hb-A0
	for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 00:15:09 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:47020)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tswRv-0004Cj-2I
 for 64140 <at> debbugs.gnu.org; Fri, 14 Mar 2025 00:15:07 -0400
DKIM-Signature: a=rsa-sha256;
 b=o4aAAco8ggyBWyyaeBnkzPRdiGH5Sp8EUYthmemIOEbU/gIYJlQhOCQ0FNoYVe3QuOZA0/CgWajhTrR+FxVajHa07i3QgQ8bQPJpUBBbkkoZSO7Q4YU3hJTxvL3o5kVAoBBGyJu8rrji9+xJv7cmB4obxXDeMgPQHAhNaWQy4HSISXBcMxjPQ5Ffa5qyBJik99t0mGiX/To5RMOG4eVK0E+KHs/Sr+FMB5OSaJRruLJ75xG549LBPP/io8K/Sw08SoiZm3gj1oB6PGwmgEUhDwQwVDzcU35Hk+WwOnqeXw0NbG7+OzM9ua4SlIWQSsJuGreYLawB7G5TsoyPzPJGkQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=YZKV6SZgnlzRVYp/8ilNeeaydKrsEAFbWnQClxE76qE=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=UprzPGZtnF7B91T+m7fCKvYurLhZ3+DOSD1jEO3eOwFzpgaz9eAdGAvRNYmuMb2ow68R8pauAXjiCnrAbGHE+OFYxNFBRDJGl8Ps1wARJLpJt+oI3R2+ez1748+ITQ4fAwbxlLgbRHO5Jj3ehvc1osc0D30oS8VFRIRHLFazuijgqa1o95gkYdJ2DJy2AZdVRfJmRp46iDlfcC76PDaDpreXbzzoUvhiNQMHJdLZv78pphndC10JW9YrwMcU6iz/xjYaZsshGY8CvJexqc0BA2ALrQpaFP+VJ/uyZ1+cWmyVwy+0KfuGgbUczZxn4U25pn6pVAmoG7DxKlEv2+y/yg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=YZKV6SZgnlzRVYp/8ilNeeaydKrsEAFbWnQClxE76qE=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 64140 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1085073378; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Fri, 14 Mar 2025 04:14:59 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 6E7267EE68C; Fri, 14 Mar 2025 12:14:57 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Daniel =?utf-8?Q?Mart=C3=ADn?= <mardani29@HIDDEN>, Eli Zaretskii
 <eliz@HIDDEN>
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
In-Reply-To: <m1pm5t1ug3.fsf@HIDDEN>
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
Date: Fri, 14 Mar 2025 12:14:57 +0800
Message-ID: <87r0301c5a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)

Hello,

"git --no-pager char_can_wrap_before *.c" doesn't make any sense at all
-- it's not a valid git command, it's not sensible arguments to 'git
grep', it's not valid arguments to grep (obviously).

I think that vc-git-grep should use a separate history variable, and I
don't think it's too late to change it, because it fixes saving this
nonsensical thing.

So I'd like to go ahead and do that, if there are no objections.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 18 Jun 2023 13:20:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 18 09:20:59 2023
Received: from localhost ([127.0.0.1]:53516 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAsKx-0000iQ-3B
	for submit <at> debbugs.gnu.org; Sun, 18 Jun 2023 09:20:59 -0400
Received: from sonic306-20.consmr.mail.ir2.yahoo.com ([77.238.176.206]:38956)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1qAsKu-0000iB-GV
 for 64140 <at> debbugs.gnu.org; Sun, 18 Jun 2023 09:20:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1687094450; bh=OysRfnOpyDrJXcRRuzq4DJZi3cl8wLCiiCTJdSOEHtA=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To;
 b=BlYmvjOSuDTFS5xi8VcJMH9FVJb7pQW0di65IZlUQKwnLB54YhfH5FSkWsFOKynCzr6O8V1L3UjIuGsPwr+BzR7NhURrJBkjYReMaRFg/b1GIUtctGTu5HZ4Hcy3+S5hghA6im6K+ZM8y6XW5nm3mFTsXcLk7rZIEXetvUQO+c4lFp3IJOioquz27Dw/iPncfq1eF87slajspiGYR6weN8n7HpukBrs65a6t9o/4qYkvaf0Q1GDXGzmId6Q7o2U7k7NAmB5nIGUTiqRcWCuP3g8Xh9B13WuQiLdwj7PDO5/vVbFzm7Blajx9OChJIDDRwTz9KFuhY5302XhONSszAA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1687094450; bh=DkjYtZCRKcJeBbIP/yj1bPIxZ9MGhPXwZgbKAo1zyk7=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=dLSqHL2B45iBgfZeb5o1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JIWGn0VxwsnBd3zrBHDXhr0gQR0mm7uZ2vpBQv3Z
 INI4uGGen7iCEn4XiZDlBJ_bhE6jmM7EcL0_.7KRCwt_Nr8nKxFmPLCrd7awZ2USISTJqs5DP6Yh
 AeftjHbVuMRoKw.vcjl2ec0amTseDhUIX9PZYHBcPiwq4ZO3L0L.LWyrHpW8eDCXAZCR1zChfy9Z
 xKomyxY_Ns1ZrUk2DCs98WLZ7mHN1uBFDuDpozpZUpUD9Ne2Lx6tSWssnP6H1ApizqKijkAMFmUp
 ScEa3F5uCkcmKvkZCWSGol8TdJMjMaqeHkkBVslmtmiMLXS0o9ZL17iVUBCAy6p.t8BtH8aEfFCr
 ToR1OdHMWaSbtwCB__Yuxd36G3gFg2yfODIGV1W0Vtx_.LEw3uTeHDShVV92L5vMkqawk9XSizx3
 FbggIdIb.iU9.YAfnZH2diam.AhzZqZvAGsTXt.weFuUpaz5D_KNi6OdPAIaRI9zt4OxvYogsdXD
 zZbjfZWhIWfye2_8PUWTaULT5g2da1EAySz7O93clyg--
X-Sonic-MF: <mardani29@HIDDEN>
X-Sonic-ID: 9d8f87f9-3a45-4b82-b335-f0c421162b26
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ir2.yahoo.com with HTTP; Sun, 18 Jun 2023 13:20:50 +0000
Received: by hermes--production-ir2-7867f454fc-kqstn (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID e5da8e9004d0c6ac6c12b436d21cc7ab; 
 Sun, 18 Jun 2023 13:20:46 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64140: 29.0.91; C-u M-x grep doesn't work correctly after
 M-x vc-git-grep
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
 <83cz1tp7a0.fsf@HIDDEN>
Date: Sun, 18 Jun 2023 15:20:45 +0200
In-Reply-To: <83cz1tp7a0.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 18 Jun
 2023 10:19:03 +0300")
Message-ID: <m1edm8ykia.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.21557
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1164
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Sun, 18 Jun 2023 02:32:28 +0200
>> From:  Daniel Mart=C3=ADn via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>=20
>> Steps to reproduce:
>>=20
>> emacs -Q
>> C-x C-f emacs/src/xdisp.c RET
>> M-x vc-git-grep RET
>> Perform any search.
>> Place the point over any symbol, for example, char_can_wrap_before.
>> C-u M-x grep
>>=20
>> The suggested grep command to confirm is
>>=20
>> git --no-pager char_can_wrap_before *.c
>>=20
>> which is incorrect, it should be
>>=20
>> grep --color=3Dauto -nH --null -e char_can_wrap_before *.c
>
> You are saying that vc-git-grep should use a separate history
> variable?

Yes, that's one possible solution, but it's probably too late to change
that.  Perhaps there should be a configuration option in the vc package
so users can choose to have a separate history variable for git grep.

grep-default-command already tries to extract different parts of the
command using regular expressions.  We could adapt grep-default-command
so that it handles git grep well, but I don't think that'd be a very
clean or future-proof solution.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at 64140 <at> debbugs.gnu.org:


Received: (at 64140) by debbugs.gnu.org; 18 Jun 2023 07:19:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 18 03:19:14 2023
Received: from localhost ([127.0.0.1]:53044 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAmgr-0002mL-PF
	for submit <at> debbugs.gnu.org; Sun, 18 Jun 2023 03:19:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qAmgn-0002m7-VJ
 for 64140 <at> debbugs.gnu.org; Sun, 18 Jun 2023 03:19:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qAmgi-0004ng-Oa; Sun, 18 Jun 2023 03:19:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=7g/Juyh1sWy0smv9gQI7TGAniBPi1VENvgoD8s++tk8=; b=T4A/4X3/9a1ScP4kEcd1
 DRwJ9eF8AGA19Y2I/AaNis+zfvTWlCSGVtNyrk+8aeDno4k8QN8fteiOFFX4od9K+zWhBW9JWRpf9
 YfIJBtmIq8ZhkG7/wreNFu8/yVwJSCOAKBTIk/TL/3yFl1G1qxsRzy5Xp1cBkH2B8vA+fgShCXiQB
 bPo76UTahxxGo9b4cO22A0YrmdJXbMsBXUmyHs9l0ld2kwyAz5lxdBqPESnOc4k76bEb2fYtVg41u
 mM3fhtUpcseSBtgSDmQsbnkD5IEXJiPE3PmH1zv0+TKZX0c7hHsq1uObVjoQaygf9BBqmPf5NjIef
 8eS9b9fU9XmsvA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qAmgf-0001vX-M1; Sun, 18 Jun 2023 03:19:04 -0400
Date: Sun, 18 Jun 2023 10:19:03 +0300
Message-Id: <83cz1tp7a0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Daniel =?iso-8859-1?Q?Mart=EDn?= <mardani29@HIDDEN>
In-Reply-To: <m1pm5t1ug3.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#64140: 29.0.91;
 C-u M-x grep doesn't work correctly after M-x vc-git-grep
References: <m1pm5t1ug3.fsf.ref@HIDDEN> <m1pm5t1ug3.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 64140
Cc: 64140 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.2 (---)

> Date: Sun, 18 Jun 2023 02:32:28 +0200
> From:  Daniel Martín via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Steps to reproduce:
> 
> emacs -Q
> C-x C-f emacs/src/xdisp.c RET
> M-x vc-git-grep RET
> Perform any search.
> Place the point over any symbol, for example, char_can_wrap_before.
> C-u M-x grep
> 
> The suggested grep command to confirm is
> 
> git --no-pager char_can_wrap_before *.c
> 
> which is incorrect, it should be
> 
> grep --color=auto -nH --null -e char_can_wrap_before *.c

You are saying that vc-git-grep should use a separate history
variable?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jun 2023 00:32:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 17 20:32:44 2023
Received: from localhost ([127.0.0.1]:52817 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qAgLU-000063-9m
	for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 20:32:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:35968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mardani29@HIDDEN>) id 1qAgLQ-00005s-Kp
 for submit <at> debbugs.gnu.org; Sat, 17 Jun 2023 20:32:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mardani29@HIDDEN>)
 id 1qAgLQ-0004oJ-BK
 for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 20:32:40 -0400
Received: from sonic308-19.consmr.mail.ir2.yahoo.com ([77.238.178.147])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mardani29@HIDDEN>)
 id 1qAgLN-0006Wa-MV
 for bug-gnu-emacs@HIDDEN; Sat, 17 Jun 2023 20:32:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048;
 t=1687048352; bh=voHv3QD7NUsw8Vsx5gWK5V94VT1y225qsMQAcHk7sjY=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=uVd6NtegIqHFImLpD6e+0YFPylWQx1Wf4ukID/gHU4GHUIhuNrF+Udbf9dZXz6VIOeYo9YBjyATvqXggobazpGaZYo/q6TIYaGcITzBKjS6RI2ru2+A74UgAK6dnve9UBeS6QQ980fJRwPVMV/pnMlld/wV6dnq714FFxK1sFnJLIAdAgwAa6TWJ/Im1pnPwWlQeDNdsjX0CPm5jhw8G3sjL/UYCucLf9sq0/4VlOg3+r6nyZH53wIHRJK5ShWNi4mF+iYkGcZZLyUZV7/pIf8sg734OjWg4tQFfG+YgCVIGCLO/KU5Yu4vOMxYSGuuCrcl4vicubp5gO837zxZ7Jw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1687048352; bh=OcVUo12lCKfBA+GQrCl5nZz+x4fEfAxHV0c54sgirKt=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=o1rmXlEpwySX1F3I9P6LgR6zm0hP/o2Dstv+S4kWjLEQ6w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CKwzj0I0aM1kkYR3XfX4l
 HBWHvhwffGxqkr_buERveIgLxRAhBLBPyGec3Waeuc4P0UbS82l4vZU5KQOl4.R4TFxiU9fw2wGC
 68L3eMrnOFj90VjZdve5jn3cSN537YMJhe.BW7S42WcdyxXf7RG.Z6Lf92uLmab1z3jH8bUllKoq
 8MyXl3_MFjLNo04Z0Jfc0Np2EL08s4.7wuQ3ge.au412VwASn0IvOtTyzOt_H7ABjWhIJaD2ZO7A
 nnP5d2amb6LJ5BoLG6CsBXtHhy3bPkedKN3igiSS9VUq9DB0cnj3pnxfDWDd6faeVy3yxRvYjXop
 ecUhvCkaJ.TcjRyx5PJpg5iAuy1RDBFLeW4vXtiK5lHwZ8MuG7MRgdc7RiGaOnLpTZo1p0q1HDzd
 UBBRGfaIxdlZ0eXESaNvnor3sKEbeZ_NFKrOPKp1BhzYKqEM7namiK4lMouKfd1972BfgmbbKxy6
 k_ePh2.uRrgKeOfEp1bk-
X-Sonic-MF: <mardani29@HIDDEN>
X-Sonic-ID: c67ce507-2c16-412a-a2b5-f2993f11dcfe
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ir2.yahoo.com with HTTP; Sun, 18 Jun 2023 00:32:32 +0000
Received: by hermes--production-ir2-7867f454fc-ns8nf (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 2b6c75268293cd02097628397316ae8e; 
 Sun, 18 Jun 2023 00:32:29 +0000 (UTC)
From: =?utf-8?Q?Daniel_Mart=C3=ADn?= <mardani29@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.91; C-u M-x grep doesn't work correctly after M-x vc-git-grep
Date: Sun, 18 Jun 2023 02:32:28 +0200
Message-ID: <m1pm5t1ug3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
References: <m1pm5t1ug3.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.21557
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 5946
Received-SPF: pass client-ip=77.238.178.147; envelope-from=mardani29@HIDDEN;
 helo=sonic308-19.consmr.mail.ir2.yahoo.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, GAPPY_SUBJECT=0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Steps to reproduce:

emacs -Q
C-x C-f emacs/src/xdisp.c RET
M-x vc-git-grep RET
Perform any search.
Place the point over any symbol, for example, char_can_wrap_before.
C-u M-x grep

The suggested grep command to confirm is

git --no-pager char_can_wrap_before *.c

which is incorrect, it should be

grep --color=auto -nH --null -e char_can_wrap_before *.c

If I run a regular grep with M-x grep, then C-u M-x now suggests the
correct grep command.

In GNU Emacs 29.0.91 (build 8, aarch64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6 (Build 21G115)) of 2023-06-07 built on
 Daniels-MacBook-Pro.local
Repository revision: bcc222251e1a750a11e365f2faa641cc56c1169d
Repository branch: emacs-29
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6

Configured using:
 'configure 'CFLAGS=-O0 -g3 -fsanitize=address'
 CPPFLAGS=-I/opt/homebrew/opt/openjdk@11/include'

Configured features:
ACL GNUTLS JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG
SQLITE3 THREADS TOOLKIT_SCROLL_BARS WEBP ZLIB

Important settings:
  value of $LC_CTYPE: UTF-8
  locale-coding-system: utf-8-unix

Major mode: C++//l

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(pcvs pcvs-defs vc-cvs vc-rcs pcvs-parse pcvs-info ewoc make-mode
pcmpl-gnu autoconf autoconf-mode pcmpl-unix ruby-mode novice org-attach
perl-mode completion dos-w32 find-cmd rng-xsd xsd-regexp rng-cmpct
rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt
rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util
nxml-enc xmltok cc-langs pcase emacs-news-mode emoji-labels emoji
multisession sqlite transient edmacro kmacro org-element org-persist
org-id org-refile avl-tree oc-basic ol-eww ol-rmail ol-mhe ol-irc
ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime
dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud
nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range
gnus-win ol-docview ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src
ob-comint org-pcomplete org-list org-footnote org-faces org-entities
ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold
org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs
org-version org-compat org-macs korea-util timezone parse-time iso8601
mhtml-mode css-mode js c-ts-common sgml-mode facemenu textsec
uni-scripts idna-mapping uni-confusable textsec-check gnutls
network-stream url-http url-gw nsm url-cache url-auth format-spec eww
xdg url-queue shr pixel-fill kinsoku url-file svg xml dom browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mm-url gnus nnheader range
cus-edit cus-start cus-load view disp-table whitespace shadow mail-extr
emacsbug message yank-media puny rfc822 mml mml-sec epa derived epg
rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils texinfo texinfo-loaddefs tabify
man imenu apropos mule-diag debug backtrace arc-mode archive-mode
doc-view filenotify jka-compr image-mode exif cl-print shortdoc
info-look noutline outline icons emacs-authors-mode reposition pulse
color semantic/symref/grep semantic/symref semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local
find-func cedet etags fileloop generator xref project smerge-mode diff
grep compile text-property-search add-log log-view pcvs-util mailcap
help-fns radix-tree cl-extra pp wid-edit descr-text help-mode dabbrev
ffap thingatpt url-parse auth-source eieio eieio-core cl-macs
password-cache json map url-vars misearch multi-isearch sort files-x
shell pcomplete comint ansi-osc ansi-color ring find-dired ediff
ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init
ediff-util vc bug-reference byte-opt gv bytecomp byte-compile cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs info vc-git diff-mode easy-mmode vc-dispatcher sh-script rx smie
treesit cl-seq executable dired-aux dired dired-loaddefs time-date
subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 1463351 251576)
 (symbols 48 56078 46)
 (strings 32 340855 23457)
 (string-bytes 1 12808718)
 (vectors 16 90277)
 (vector-slots 8 2453536 236046)
 (floats 8 536 683)
 (intervals 56 177206 7850)
 (buffers 976 217))




Acknowledgement sent to Daniel Martín <mardani29@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64140; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 16 Mar 2025 03:45:03 UTC

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