From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Friedrich Laher Newsgroups: gmane.emacs.help Subject: Re: repexp to collapse multiple blank lines into one Date: Sun, 09 Oct 2005 14:59:30 +0200 Message-ID: <43491432.2070006@schmieder-laher.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128863178 23699 80.91.229.2 (9 Oct 2005 13:06:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Oct 2005 13:06:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 09 15:06:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EOasY-00062I-8j for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2005 15:06:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOaoo-0006Yk-9H for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Oct 2005 09:02:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EOanE-0006Cx-NT for help-gnu-emacs@gnu.org; Sun, 09 Oct 2005 09:00:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EOanD-0006Bf-7L for help-gnu-emacs@gnu.org; Sun, 09 Oct 2005 09:00:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EOan3-0006B9-Rl for help-gnu-emacs@gnu.org; Sun, 09 Oct 2005 09:00:41 -0400 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EOan3-0006eZ-Cv for help-gnu-emacs@gnu.org; Sun, 09 Oct 2005 09:00:33 -0400 Original-Received: from p54A1B7A3.dip0.t-ipconnect.de [84.161.183.163] (helo=schmieder-laher.de) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML21M-1EOan13xs6-0006ou; Sun, 09 Oct 2005 15:00:31 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d0a55953dfb65f372f82ef4b3cf5b37b 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:30079 Archived-At: you could run until search fail replacing 2 newlines by one B. T. Raven wrote: >Is there a way to use M-C-% to flush extra blank lines from a buffer. >Something like: >Query replace regexp: ^$+ [which of course doesn't work, presumably >because $ has to be last] >with: C-j > >I know about C-x C-o but that's interactive rather than batch mode. > >Thanks, > >Ed > > >_______________________________________________ >Help-gnu-emacs mailing list >Help-gnu-emacs@gnu.org >http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > > >