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: Tue, 01 Dec 2020 23:26:10 -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> 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="34480"; 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 Wed Dec 02 05:27:12 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 1kkJjT-0008pA-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 05:27:11 +0100 Original-Received: from localhost ([::1]:52960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkJjS-0005F2-B6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 23:27:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkJjK-0005Em-PA for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkJjK-0004Mz-Gq for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkJjK-0008Ob-DZ for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 23:27: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: Wed, 02 Dec 2020 04:27: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.160688318332225 (code B ref 31796); Wed, 02 Dec 2020 04:27:02 +0000 Original-Received: (at 31796) by debbugs.gnu.org; 2 Dec 2020 04:26:23 +0000 Original-Received: from localhost ([127.0.0.1]:33854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkJih-0008Ng-8a for submit@debbugs.gnu.org; Tue, 01 Dec 2020 23:26:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkJid-0008NR-2c for 31796@debbugs.gnu.org; Tue, 01 Dec 2020 23:26:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkJiV-0003vE-OI; Tue, 01 Dec 2020 23:26:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kkJiU-0003uD-Lq; Tue, 01 Dec 2020 23:26:10 -0500 In-Reply-To: <83k0u1il6c.fsf@gnu.org> (message from Eli Zaretskii on Tue, 01 Dec 2020 17:46:19 +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:194767 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. ]]] > AFAIU, there's already such an option: -b. However, byte-to-position > works only with UTF-8 encoded files; we need filepos-to-bufferpos Oops. > (which requires to know the file's encoding, so we are back at the > same problem). If you're going to look at the contents of the file, you have to visit it, which means you'll know which encoding to use for that file. Does that make it work? -- 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)