From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#71321: 30.0.50; M-x grep: not recognizing well files with colon Date: Tue, 4 Jun 2024 07:28:58 +0300 Message-ID: References: <87y17rty4s.fsf@lco2.mail-host-address-is-not-set> <86v82rmzmh.fsf@gnu.org> <5b18d739-0d82-ce79-a464-ecc7eccaf75b@gmail.com> <861q5emeup.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26635"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.12 (2023-09-09) Cc: Jim Porter , Eli Zaretskii , 71321@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 04 06:30:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sELoJ-0006gf-SI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jun 2024 06:30:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sELnz-0006eP-Rb; Tue, 04 Jun 2024 00:29:51 -0400 Original-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 ) id 1sELny-0006eF-2Z for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 00:29:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sELnx-0003z1-Qs for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 00:29:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sELoA-0001nD-Vb for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 00:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jun 2024 04:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71321 X-GNU-PR-Package: emacs Original-Received: via spool by 71321-submit@debbugs.gnu.org id=B71321.17174753606813 (code B ref 71321); Tue, 04 Jun 2024 04:30:02 +0000 Original-Received: (at 71321) by debbugs.gnu.org; 4 Jun 2024 04:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:56127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sELnT-0001lo-J8 for submit@debbugs.gnu.org; Tue, 04 Jun 2024 00:29:19 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sELnR-0001k5-C1 for 71321@debbugs.gnu.org; Tue, 04 Jun 2024 00:29:18 -0400 Original-Received: from localhost ([::ffff:41.75.184.97]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000001139F6.00000000665E980F.002D9B7B; Mon, 03 Jun 2024 21:29:02 -0700 Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286508 Archived-At: * Dmitry Gutov [2024-06-03 23:41]: > On 03/06/2024 14:43, Eli Zaretskii wrote: > > > Date: Sun, 2 Jun 2024 21:17:02 -0700 > > > Cc:71321@debbugs.gnu.org > > > From: Jim Porter > > > > > > On 6/2/2024 3:02 AM, Eli Zaretskii wrote: > > > > Improved how? Can you suggest how to distinguish between ":39:" and > > > > ":13:" in the Grep output, when searching where the file name ends and > > > > the line number and the following test starts? > > > M-x grep and friends should already be doing the right thing: when > > > supported, it passes "--null" to "grep", which changes the output so > > > that it separates the file name from the line number using a NUL > > > character. The regexps in grep.el can then detect that output and parse > > > it correctly. > > I know, but since Jean reported this, his Grep evidently doesn't do > > that. So I asked how to do better in that case. > > Perhaps he had customized grep-template, so that the --null flag is not > there. grep-template is a variable defined in ‘grep.el’. Its value is "grep -nH --null -e " Original value was nil -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns ✡️🛡️ Proudly standing with Israel, a nation rooted in history and culture. Let's condemn hatred and promote understanding. In support of Richard M. Stallman https://stallmansupport.org/