From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: Delete every other line
Date: Sun, 27 Sep 2009 13:37:49 +0100 [thread overview]
Message-ID: <4abf5c9e$0$280$14726298@news.sunsite.dk> (raw)
In-Reply-To: <mailman.7580.1253994955.2239.help-gnu-emacs@gnu.org>
James wrote:
> Is there a way to deleting blank unnecessarily double spaced blank lines
> in a buffer. "delete-blank-lines" doesn't do what I want.
>
> Cheers,
> James
James,
Ctrl-Home
M-x replace-regexp RET
C-q C-j C-q C-j + RET
C-q C-j RET
will replace two-or-more end-of-line characters with
a single end-of-line, for the entire buffer.
C-q allows a special character to be entered literally (from the keyboard),
C-j is end-of-line. + means one-or-more of the previous character (here the last
C-j).
HTH,
Colin S. Miller
--
Replace the obvious in my email address with the first three letters of the hostname to reply.
next parent reply other threads:[~2009-09-27 12:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7580.1253994955.2239.help-gnu-emacs@gnu.org>
2009-09-27 12:37 ` Colin S. Miller [this message]
2009-09-30 19:53 ` Delete every other line Alexander Katovsky
2009-09-26 12:39 James
2009-09-26 20:01 ` Juanma Barranquero
2009-09-26 22:34 ` Peter Dyballa
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='4abf5c9e$0$280$14726298@news.sunsite.dk' \
--to=no-spam-thank-you@csmiller.demon.co.uk \
--cc=help-gnu-emacs@gnu.org \
/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.