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

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

Re: Nested grep


From: Robert Thorpe
Subject: Re: Nested grep
Date: 14 Nov 2006 06:55:52 -0800
User-agent: G2/1.0

spamfilteraccount@gmail.com wrote:
> 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?

You can...

Use a double grep at the start, ie when it says:
Run grep like this: grep -n -e
Change it to include two greps and a pipe.

Or, better once the grep buffer is open use M-x occur on that buffer.
See C-h f occur.



reply via email to

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