unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Nested grep
Date: Tue, 14 Nov 2006 07:02:04 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICAEHJDJAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1163511304.139898.234500@f16g2000cwb.googlegroups.com>

> When grepping for something I often follow a certain match and do
> another grep to find out more about it. The problem is this eliminates
> the original grep buffer (with matches, current state, etc.), so I have
> to redo that grep (and start from the first match again if I use
> next-error) to continue investigating other matches.
>
> I'd like a nested grep feature for starting an other grep with the
> ability to return easily to the previous grep results after I'm
> finished with the current one.
>
> Is there an existing package which does something like that?

In Emacs 22 you can pipe the output of one grep to another: grep foo|grep
bar|grep toto. Just type that at the grep prompt.

You might also be interested in Icicles command `icicle-compilation-search'
(`C-c `' in buffer *grep*), which lets you search among grep hits using
additional regexps -
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Other_Search_Commands.

  parent reply	other threads:[~2006-11-14 15:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14 13:35 Nested grep spamfilteraccount
2006-11-14 14:55 ` Robert Thorpe
2006-11-14 15:02 ` Drew Adams [this message]
     [not found] ` <mailman.569.1163516549.2155.help-gnu-emacs@gnu.org>
2006-11-14 16:00   ` spamfilteraccount
2006-11-14 16:11 ` Markus Triska
2006-11-14 16:34   ` spamfilteraccount
2006-11-14 16:40     ` Markus Triska
2006-11-14 17:00       ` spamfilteraccount
2006-11-14 17:32         ` spamfilteraccount
2006-11-14 21:54           ` Drew Adams
     [not found]           ` <mailman.604.1163541320.2155.help-gnu-emacs@gnu.org>
2006-11-15  6:35             ` spamfilteraccount
2006-11-15 16:36               ` Drew Adams
     [not found]               ` <mailman.653.1163608715.2155.help-gnu-emacs@gnu.org>
2006-11-15 16:47                 ` spamfilteraccount
2006-11-15 19:02                   ` Drew Adams
     [not found]                   ` <mailman.666.1163617488.2155.help-gnu-emacs@gnu.org>
2006-11-16  8:02                     ` spamfilteraccount
2006-11-16 17:35                       ` Drew Adams
2006-11-15 17:57             ` Peter Lee
2006-11-17 16:09               ` Drew Adams
2006-11-14 18:21 ` Peter Dyballa
     [not found] <mailman.754.1163779854.2155.help-gnu-emacs@gnu.org>
2006-11-17 17:59 ` Peter Lee

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=DNEMKBNJBGPAOPIJOOICAEHJDJAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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).