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#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps Date: Sun, 06 Dec 2020 23:00:24 +0200 Organization: LINKOV.NET Message-ID: <87eek2902v.fsf@mail.linkov.net> References: <10120030-8b8d-b702-add4-8f099f934ed5@chalmers.se> <831rgivl7l.fsf@gnu.org> <83lfequ30g.fsf@gnu.org> <83a6v6tss9.fsf@gnu.org> <08c0bbce-051e-7a49-106a-d6d0629b2224@yandex.ru> <87blffns95.fsf@mail.linkov.net> <8c124412-3bb3-fd92-4c3b-da4b3a8bdcac@yandex.ru> <87blfec4l3.fsf@mail.linkov.net> <00d1c8ef-5601-6445-199e-1590ddfae9e9@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: abela@chalmers.se, 31796@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 22:17:31 2020 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 1km1PO-00026N-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 22:17:30 +0100 Original-Received: from localhost ([::1]:33304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km1PN-0003eJ-RX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 16:17:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1km1Ow-000369-84 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 16:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1km1Ow-0004mn-1C for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 16:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1km1Ov-00037H-T2 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 16:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31796 X-GNU-PR-Package: emacs Original-Received: via spool by 31796-submit@debbugs.gnu.org id=B31796.160728937611900 (code B ref 31796); Sun, 06 Dec 2020 21:17:01 +0000 Original-Received: (at 31796) by debbugs.gnu.org; 6 Dec 2020 21:16:16 +0000 Original-Received: from localhost ([127.0.0.1]:51500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km1OB-00035r-UR for submit@debbugs.gnu.org; Sun, 06 Dec 2020 16:16:16 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:56969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km1OA-00035G-Mu for 31796@debbugs.gnu.org; Sun, 06 Dec 2020 16:16:15 -0500 X-Originating-IP: 91.129.99.98 Original-Received: from mail.gandi.net (m91-129-99-98.cust.tele2.ee [91.129.99.98]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id E18A41BF204; Sun, 6 Dec 2020 21:16:06 +0000 (UTC) In-Reply-To: <00d1c8ef-5601-6445-199e-1590ddfae9e9@yandex.ru> (Dmitry Gutov's message of "Thu, 3 Dec 2020 04:46:43 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:195176 Archived-At: >> dired-do-find-regexp uses 'ignores' to filter out ignored files. >> You could add another filter to filter out files without matches >> using 'grep -PzL'. > > Right. This is sorta a backup plan. Although, when the number of files to > search can be counted on one hand, there's nothing too bad in doing the > search in Emacs. Another backup plan is to use ripgrep. Its multiline handling with -U also allows to search words ignoring any whitespace, even newlines. This is like isearch-lax-whitespace using search-whitespace-regexp when it contains a newline, e.g. "[ \t\r\n]+".