From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24305: 25.1; dired can't replace '\n' in file content (dired-do-find-regexp-and-replace) Date: Thu, 25 Aug 2016 17:33:42 +0300 Message-ID: <83mvk0ex4p.fsf@gnu.org> References: <877fb53j8i.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1472135660 14071 195.159.176.226 (25 Aug 2016 14:34:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2016 14:34:20 +0000 (UTC) Cc: mc.maxcanal@gmail.com, 24305@debbugs.gnu.org, dgutov@yandex.ru To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 25 16:34:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcvjT-0003CV-8o for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2016 16:34:15 +0200 Original-Received: from localhost ([::1]:56607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcvjQ-0001uu-Ef for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Aug 2016 10:34:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcvjK-0001sS-Fr for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2016 10:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcvjG-0000id-CI for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2016 10:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcvjG-0000iZ-8U for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2016 10:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bcvjG-0001HR-4Z for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2016 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2016 14:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24305 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24305-submit@debbugs.gnu.org id=B24305.14721356334907 (code B ref 24305); Thu, 25 Aug 2016 14:34:02 +0000 Original-Received: (at 24305) by debbugs.gnu.org; 25 Aug 2016 14:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:40722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcvj7-0001H5-1V for submit@debbugs.gnu.org; Thu, 25 Aug 2016 10:33:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcvj4-0001Gs-RV for 24305@debbugs.gnu.org; Thu, 25 Aug 2016 10:33:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcviu-0000Yc-6l for 24305@debbugs.gnu.org; Thu, 25 Aug 2016 10:33:45 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcvie-0000Rq-MH; Thu, 25 Aug 2016 10:33:24 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4369 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bcvid-0004Zf-Me; Thu, 25 Aug 2016 10:33:24 -0400 In-reply-to: (message from Tino Calancha on Thu, 25 Aug 2016 14:35:52 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122650 Archived-At: > From: Tino Calancha > Date: Thu, 25 Aug 2016 14:35:52 +0900 (JST) > Cc: mc.maxcanal@gmail.com, dgutov@yandex.ru, tino.calancha@gmail.com > > As reported in NEWS file, since Emas 25.1 the key 'Q' is bound > to a new command 'dired-do-find-regexp-and-replace'. The key 'A' > is also bound to a new command: dired-do-find-regexp. > > The old commands use Emacs regexp engine, while the new commands > use grep: this may cause that regexps which previously > matched results, with the new commands don't match anymore. > > That seems the case in your example: the old command matches '\n', but > the new one cannot: The doc string says: REGEXP should use constructs supported by your local ‘grep’ command. IOW, the '\n' should be replaced by something Grep supports, like $ or some such (I don't think I understand the exact use case to give a 100% accurate advice). In any case, this is a duplicate of bug#23426, which see (well, the beginning, before the discussion went haywire).