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

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

repexp to collapse multiple blank lines into one


From: B. T. Raven
Subject: repexp to collapse multiple blank lines into one
Date: Sun, 09 Oct 2005 12:27:07 GMT

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




reply via email to

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