all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Friedrich Laher <fritz.laher@schmieder-laher.de>
Subject: Re: repexp to collapse multiple blank lines into one
Date: Sun, 09 Oct 2005 14:59:30 +0200	[thread overview]
Message-ID: <43491432.2070006@schmieder-laher.de> (raw)
In-Reply-To: <v082f.11337$vw6.9392@newsread1.news.atl.earthlink.net>

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	other threads:[~2005-10-09 12:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-09 12:27 repexp to collapse multiple blank lines into one B. T. Raven
2005-10-09 12:59 ` Friedrich Laher [this message]
2005-10-09 13:01 ` Peter Dyballa
2005-10-09 13:44 ` Neon Absentius
     [not found] ` <mailman.10556.1128865819.20277.help-gnu-emacs@gnu.org>
2005-10-09 18:36   ` regexp " B. T. Raven
2005-10-10 16:35     ` Kevin Rodgers
2005-10-10 17:28       ` Neon Absentius
2005-10-10 18:33         ` Kevin Rodgers
2005-10-10 19:06           ` Neon Absentius
     [not found]           ` <mailman.10719.1128971211.20277.help-gnu-emacs@gnu.org>
2005-10-11 22:21             ` Tim X
2005-10-12  1:14               ` Neon Absentius
2005-10-10 18:02       ` Peter Dyballa
2005-10-10 20:59 ` repexp " David Hansen
2005-10-11  2:09   ` Neon Absentius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43491432.2070006@schmieder-laher.de \
    --to=fritz.laher@schmieder-laher.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.