unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Emacs Mailing List <help-gnu-emacs@gnu.org>
Subject: Re: delete whitespace lines with replace-regexp
Date: Thu, 12 Jul 2007 17:08:40 +0200	[thread overview]
Message-ID: <99C9BECE-4892-4119-82CD-7B0085F5CC99@Web.DE> (raw)
In-Reply-To: <f74j5g$14i4$1@otis.netspace.net.au>


Am 12.07.2007 um 08:53 schrieb oliver:

> what's wrong?

The $ is too much. I'd make it, old-fashioned, this way

	M-x query-replace-regexp RET ^ [ SPC C-q TAB ] + C-q C-j RET RET

i.e.: change all lines starting with SPC or TAB and having only SPC  
or TAB until the final linefeed with nothing.

--
Mit friedvollen Grüßen

   Pete

Stau ist nur hinten blöd, vorne geht's!

  parent reply	other threads:[~2007-07-12 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12  6:53 delete whitespace lines with replace-regexp oliver
2007-07-12 12:49 ` weber
2007-07-12 15:08 ` Peter Dyballa [this message]
2007-07-12 17:25 ` Eric Hanchrow
     [not found] ` <mailman.3395.1184252932.32220.help-gnu-emacs@gnu.org>
2007-07-12 23:22   ` oliver

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=99C9BECE-4892-4119-82CD-7B0085F5CC99@Web.DE \
    --to=peter_dyballa@web.de \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).