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

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

Re: Emacs equivalent of the ":g" command in vi


From: rusi
Subject: Re: Emacs equivalent of the ":g" command in vi
Date: Wed, 28 Mar 2012 19:19:31 -0000
User-agent: G2/1.0

On Jul 22, 3:02 pm, C K Kashyap <ckkash...@gmail.com> wrote:
> > > which could be as simple as in vi/vim.)
> > I think he want to delete lines matching a regexp, so C-k is not what he
> > wants here.
>
> > `query-replace-regexp' can be used with a regexp like this:
>
> > ^.*\(your_regexp\).*$
>
> > and you replace with nothing (empty prompt).
>
> > --
>
> replace-regexp is indeed closer to what I am looking for. However, I'd like
> the result to not leave blank lines.

How is flush-lines inadequate/unsuitable? [I must admit the name is
strange :-) ]


reply via email to

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