From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#31796: 27.1; dired-do-find-regexp-and-replace fails to find multiline regexps Date: Thu, 03 Dec 2020 00:26:40 -0500 Message-ID: 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> <83k0u1il6c.fsf@gnu.org> <83blfcgst9.fsf@gnu.org> <83zh2wf6or.fsf@gnu.org> <0646a65f-db21-b377-6897-caeb6ff3e10c@yandex.ru> <83wny0f6bk.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1523"; mail-complaints-to="usenet@ciao.gmane.io" Cc: abela@chalmers.se, 31796@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 03 06:28:28 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 1kkhAK-0000I3-7z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 06:28:28 +0100 Original-Received: from localhost ([::1]:36922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkhAJ-0007gm-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 00:28:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkh9u-0007gd-Kv for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 00:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkh9u-0006aV-D6 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 00:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkh9u-0001B9-7e for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 00:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Dec 2020 05:28:02 +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.16069732234453 (code B ref 31796); Thu, 03 Dec 2020 05:28:02 +0000 Original-Received: (at 31796) by debbugs.gnu.org; 3 Dec 2020 05:27:03 +0000 Original-Received: from localhost ([127.0.0.1]:37983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkh8t-00019N-Pk for submit@debbugs.gnu.org; Thu, 03 Dec 2020 00:27:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkh8r-000197-Kv for 31796@debbugs.gnu.org; Thu, 03 Dec 2020 00:26:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37086) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkh8l-0006DF-Ks; Thu, 03 Dec 2020 00:26:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kkh8a-0001ix-OX; Thu, 03 Dec 2020 00:26:40 -0500 In-Reply-To: <83wny0f6bk.fsf@gnu.org> (message from Eli Zaretskii on Wed, 02 Dec 2020 19:47: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:194845 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Subject: bug#31796: 27.1; > dired-do-find-regexp-and-replace fails to find multiline regexps > Resent-From: Eli Zaretskii > Original-Sender: "Debbugs-submit" > Resent-CC: bug-gnu-emacs@gnu.org > Resent-Sender: help-debbugs@gnu.org > To: Dmitry Gutov > Date: Wed, 02 Dec 2020 19:47:43 +0200 > Message-Id: <83wny0f6bk.fsf@gnu.org> > From: Eli Zaretskii > In-Reply-To: <0646a65f-db21-b377-6897-caeb6ff3e10c@yandex.ru> (message from > Dmitry Gutov on Wed, 2 Dec 2020 19:43:52 +0200) > Cc: abela@chalmers.se, rms@gnu.org, 31796@debbugs.gnu.org > > Cc: rms@gnu.org, abela@chalmers.se, 31796@debbugs.gnu.org > > From: Dmitry Gutov > > Date: Wed, 2 Dec 2020 19:43:52 +0200 > > > > >> Although... since it has to scan the full file anyway, it could first do > > >> a quick detection, and then maybe rescan from the beginning if the > > >> encoding turns out to be something else. > > > > > > That'd be too late, as some matches were already output. > > > > It could buffer them until the full file has been parsed. Encoding > > detection and conversion must add a certain overhead anyway, so I'm not > > sure how expensive the extra buffering would be in comparison. > > > > As a bonus, per-file buffering like that would allow easier > > parallelization of searches. > Buffering means you don't output matches as soon as you find them, > which might be regarded as a kind of regression -- see Richard's bug > reports a few days ago. And since you never know where in the file > the telltale byte sequences will appear, you will need to always wait > until the entire file is read -- which could be prohibitive for very > large files. In my case, I was definitely going to wait until the search finished, to see all the responses. But it is mudh easier to look at them if they come out one by one, rather than all at once due to buffering. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)