From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10885: Replace expressions: enhance functionality when searching in filled paragraphs Date: Sat, 25 Feb 2012 20:57:05 -0500 Message-ID: <1oipiuxspa.fsf@fencepost.gnu.org> References: <33392837.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1330221449 17496 80.91.229.3 (26 Feb 2012 01:57:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2012 01:57:29 +0000 (UTC) Cc: 10885@debbugs.gnu.org To: linuxfever Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 26 02:57:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1TMa-0006yM-CE for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2012 02:57:24 +0100 Original-Received: from localhost ([::1]:51950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1TMZ-0006Ox-Uo for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 Feb 2012 20:57:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1TMX-0006Oq-Jt for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 20:57:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1TMW-0007iK-Ea for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 20:57:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1TMW-0007iG-B8 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 20:57:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S1TP8-0008JQ-CF for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2012 21:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2012 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10885 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10885-submit@debbugs.gnu.org id=B10885.133022159131906 (code B ref 10885); Sun, 26 Feb 2012 02:00:02 +0000 Original-Received: (at 10885) by debbugs.gnu.org; 26 Feb 2012 01:59:51 +0000 Original-Received: from localhost ([127.0.0.1]:56569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1TOw-0008IZ-P6 for submit@debbugs.gnu.org; Sat, 25 Feb 2012 20:59:51 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40233) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1TOu-0008IR-Bq for 10885@debbugs.gnu.org; Sat, 25 Feb 2012 20:59:49 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1S1TMH-0000bX-5a; Sat, 25 Feb 2012 20:57:05 -0500 X-Spook: halcon ASO Agfa SCUD missile Albanian Freeh Noriega X-Ran: 6X#)sC?vF|1` X-Hue: yellow X-Attribution: GM In-Reply-To: <33392837.post@talk.nabble.com> (linuxfever@yahoo.gr's message of "Sat, 25 Feb 2012 17:02:45 -0800 (PST)") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57245 Archived-At: linuxfever wrote: > Currently it seems that when trying to replace an expression comprising two > words, say for example 'replace this', then the functions 'replace-string' > or 'replace-regexp' fail to locate the expression when that is split along > two lines in the text, i.e., in the above example when the word 'replace' is > at the end of one line, and the word 'this' is at the beginning of the next > one. You can use query-replace-regexp for this. Sample input: This is text. This is text. This is text. This is text. Replace this. This is text. This is text. This is text. This is text. This is text. Replace this. Replace this. M-x query-replace-regexp RET \(replace\)\([ ^I^J]*\)\(this\) RET Done\2that RET Output: This is text. This is text. This is text. This is text. Done that. This is text. This is text. This is text. This is text. This is text. Done that. Done that.