unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: C K Kashyap <ckkashyap@gmail.com>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs equivalent of the ":g" command in vi
Date: Fri, 22 Jul 2011 15:32:10 +0530	[thread overview]
Message-ID: <CAGdT1gr4wZH0Vr=2nim8sZAcQkj46gLcd=-WmzJ3iiL3p7SNAA@mail.gmail.com> (raw)
In-Reply-To: <8762mufxx7.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

>
> > 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.

Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 729 bytes --]

  reply	other threads:[~2011-07-22 10:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22  8:42 Emacs equivalent of the ":g" command in vi C K Kashyap
2011-07-22  9:27 ` Peter Dyballa
2011-07-22  9:48   ` Thierry Volpiatto
2011-07-22 10:02     ` C K Kashyap [this message]
2011-07-22 10:12       ` Peter Dyballa
2011-07-22 10:41         ` C K Kashyap
2011-07-22 10:34       ` Thien-Thi Nguyen
2011-07-22 10:44         ` C K Kashyap
2011-07-22 10:45       ` Deniz Dogan
2011-07-22 10:46         ` Deniz Dogan
2011-07-22 19:03       ` Eric Abrahamsen
2011-07-22 20:27 ` MBR
2011-07-22 20:37   ` Andreas Röhler
2011-07-22 20:51     ` MBR
2011-07-23  7:10       ` Andreas Röhler
2011-08-15  0:27       ` Ken Goldman
2011-07-23  3:02   ` C K Kashyap
2011-07-23  8:44     ` suvayu ali

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='CAGdT1gr4wZH0Vr=2nim8sZAcQkj46gLcd=-WmzJ3iiL3p7SNAA@mail.gmail.com' \
    --to=ckkashyap@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /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).