From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31796: 26.1; dired-do-find-regexp-and-replace fails to find multiline regexps Date: Tue, 12 Jun 2018 06:17:28 -0400 Message-ID: <87zi00xq9z.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528798572 11148 195.159.176.226 (12 Jun 2018 10:16:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 10:16:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31796@debbugs.gnu.org To: =?UTF-8?Q?=C5=BDygimantas?= Bruzgys Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 12:16:07 2018 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 1fSgLP-0002no-Dv for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 12:16:07 +0200 Original-Received: from localhost ([::1]:54274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSgNW-0005d2-HK for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 06:18:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSgNL-0005aW-BP for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 06:18:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSgNI-0004YM-8Z for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 06:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSgNI-0004Y7-30 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 06:18:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSgNG-0006Vk-CE for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2018 06:18:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2018 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31796-submit@debbugs.gnu.org id=B31796.152879865824993 (code B ref 31796); Tue, 12 Jun 2018 10:18:02 +0000 Original-Received: (at 31796) by debbugs.gnu.org; 12 Jun 2018 10:17:38 +0000 Original-Received: from localhost ([127.0.0.1]:44116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSgMs-0006V3-2d for submit@debbugs.gnu.org; Tue, 12 Jun 2018 06:17:38 -0400 Original-Received: from mail-io0-f174.google.com ([209.85.223.174]:38000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSgMp-0006Uq-NU for 31796@debbugs.gnu.org; Tue, 12 Jun 2018 06:17:36 -0400 Original-Received: by mail-io0-f174.google.com with SMTP id l19-v6so27389007ioj.5 for <31796@debbugs.gnu.org>; Tue, 12 Jun 2018 03:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=/0TvH8b06ZwuZm/RMjPWKhC4s/ydR5gEcK+I6ty1ZMs=; b=veu3qoHomy6NCGmFZ2HB4K41mi9arOj3PcmWiwIvhz3SHm7IHD76RAEp4Lc7R5FhNK JADeGUYgCjG4NuRzoo3rzi5jmD3MzG4OdFJdwLr6/e0yNrJXSNBze+DcAvBecI29vWPq 0GJJkBeZrNNEB3VhfmrjCkSeoEt4AI54ZovjCzGC1kgbrzYT8h5JYruy7gTw1RawMOSY Luk5XZljNrFW33iai16G5txFmTtH8BajOa3Jaa9Xqc9sbGiJYWQaYyWekNWvpehK0Bb3 athKiBrh53BaDbRxg/Mzv/RaHqNWv3yWE6HRV/L/xbS89pm8SrbNF8Lq8aO+pm/O++8N pOCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=/0TvH8b06ZwuZm/RMjPWKhC4s/ydR5gEcK+I6ty1ZMs=; b=hKOJ4pfHKLooovtN6bsK1x7QwLZE4YMllD6gMgdSQdLm1O4PX1MFdgZOkNRz01J0Be 9z/vlk7nUuPFwfu0zsWIiF1ph6XXonZHbt7u9mG1igs8EQQ1mee9lly5Rac29Kk8RbP4 WiIy8r+u3UaI491abEqCl2jPQTsmUb4RF6esn9G8n+B+OBp3rbNOwQ+HOdbqWV1tq4hA BaF5uvM829kZI2VBmcnOxcq5eNCLEUbJnaVqxMmE9TacZD86ZkFgeEypLhfb8UGSN9PQ S8BAdZJYUunJvAs/rcuDXZe77G5wC93SIBSaoNsP7MyNUtCjYXCwqctYOQnOmTgAC9mg jVvA== X-Gm-Message-State: APt69E3bE1PE5VVEPYrT5xVOheRR2vaHNHjy/Y9OCMzONSXeuHz9eFmS klHMHR5FynW4Uav7m2KFeO8KjQ== X-Google-Smtp-Source: ADUXVKJ19Z0gPLHgYat42gsgeeEyKTePlYpBfKq4NocLvP1QDB5sqbIur3cAJRCpFHgqWFDm4FZiBg== X-Received: by 2002:a6b:6e0e:: with SMTP id d14-v6mr2648050ioh.57.1528798650100; Tue, 12 Jun 2018 03:17:30 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 80-v6sm18758itk.12.2018.06.12.03.17.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jun 2018 03:17:29 -0700 (PDT) In-Reply-To: ("=?UTF-8?Q?=C5=BDygimantas?= Bruzgys"'s message of "Mon, 11 Jun 2018 20:58:28 +0200") 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:147325 Archived-At: =C5=BDygimantas Bruzgys writes: > 1) Create ~/test with a file with following contents: > multi > line > > 2) Visit directory using dired: C-f ~/test > 3) Initiate regexp-replace by hitting Q > 4) multi[[:space:]]line RET singeline RET > 5) See that dired regexp replace failed reporting that no results were > found > 6) Visit a file you have just created. > 7) Initiate query-replace-regexp with C-M-% > 8) Accept the suggested (previous) query-replace by hitting RET > 9) See that the query is actually correct and finds the result. As the docstring of dired-do-find-regexp-and-replace says: REGEXP should use constructs supported by your local =E2=80=98grep=E2= =80=99 command. grep matches single lines, so multiline matching won't work.