From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#71179: [PATCH] In rgrep, check matching files before excluding files Date: Sun, 26 May 2024 09:50:36 +0300 Organization: LINKOV.NET Message-ID: <86r0dpdpir.fsf@mail.linkov.net> References: <2c88f75b-6407-4eab-a5a5-0c16f005cd9f@gutov.dev> <2c4c0319-b16e-4912-9991-3f6ad5a035a0@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19806"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Spencer Baugh , 71179@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 26 09:15:27 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 1sB86I-00051O-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 09:15:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sB85z-0006Eu-2W; Sun, 26 May 2024 03:15:07 -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 1sB85o-0006A7-KG for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 03:14:56 -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 1sB85n-0005yr-Tl for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 03:14:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sB85u-0006Ou-Rz for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 03:15:02 -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, 26 May 2024 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71179-submit@debbugs.gnu.org id=B71179.171670770124583 (code B ref 71179); Sun, 26 May 2024 07:15:02 +0000 Original-Received: (at 71179) by debbugs.gnu.org; 26 May 2024 07:15:01 +0000 Original-Received: from localhost ([127.0.0.1]:38240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB85t-0006OL-5Y for submit@debbugs.gnu.org; Sun, 26 May 2024 03:15:01 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:49673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sB85q-0006Nx-U6 for 71179@debbugs.gnu.org; Sun, 26 May 2024 03:14:59 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 75B9620003; Sun, 26 May 2024 07:14:24 +0000 (UTC) In-Reply-To: <2c4c0319-b16e-4912-9991-3f6ad5a035a0@gutov.dev> (Dmitry Gutov's message of "Sat, 25 May 2024 15:31:01 +0300") X-GND-Sasl: juri@linkov.net 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:285925 Archived-At: >> A grep-find-template that doesn't include will indeed start seeing >> ignores based on grep-find-ignored-files in rgrep. But, such a user can >> just set grep-find-ignored-files to nil and then they'll stop seeing >> ignores again. > > Yeah, that sounds like a good enough solution for such cases. > > I recall that Juri experimented with customizing grep-find-template (to use > ripgrep? and perhaps other things). I wonder what he thinks about this > patch. I'm using such configuration for ripgrep that hopefully should continue working: (setq grep-find-template "find -type f -print0 | sort -z | xargs -0 -e rg -nH --no-heading --null -j8 --sort path -M 200 --max-columns-preview -e ")