From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: regexp to collapse multiple blank lines into one Date: Mon, 10 Oct 2005 20:02:40 +0200 Message-ID: References: <9rd2f.11472$vw6.9111@newsread1.news.atl.earthlink.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128967593 12407 80.91.229.2 (10 Oct 2005 18:06:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2005 18:06:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 10 20:06:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EP1zo-00052i-B5 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Oct 2005 20:03:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EP1zn-0002Q9-Qr for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Oct 2005 14:03:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EP1zZ-0002Pl-Qz for help-gnu-emacs@gnu.org; Mon, 10 Oct 2005 14:03:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EP1zY-0002PI-9n for help-gnu-emacs@gnu.org; Mon, 10 Oct 2005 14:03:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EP1zY-0002PF-6o for help-gnu-emacs@gnu.org; Mon, 10 Oct 2005 14:03:16 -0400 Original-Received: from [217.72.192.209] (helo=smtp05.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EP1zX-0005rG-Ui for help-gnu-emacs@gnu.org; Mon, 10 Oct 2005 14:03:16 -0400 Original-Received: from [84.245.189.62] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1EP1zW-00007j-00; Mon, 10 Oct 2005 20:03:14 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Kevin Rodgers X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30109 Archived-At: Am 10.10.2005 um 18:35 schrieb Kevin Rodgers: > >>C-M-% \(^C-qC-j\)+ RET \1 RET > >> > I'll admit, I don't understand why that solution works: it appears to > But it's so easy: it's exactly one newline between the parentheses! Outside is the plus. So up to many occurences of newline get replaced by exactly one. -- Greetings Pete War springs from unseen and generally insignificant causes. -Anonymous