help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: repexp to collapse multiple blank lines into one


From: Friedrich Laher
Subject: Re: repexp to collapse multiple blank lines into one
Date: Sun, 09 Oct 2005 14:59:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]