From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Nested grep Date: 14 Nov 2006 09:32:44 -0800 Organization: http://groups.google.com Message-ID: <1163525564.070911.105020@m7g2000cwm.googlegroups.com> References: <1163511304.139898.234500@f16g2000cwb.googlegroups.com> <87wt5y57qd.fsf@gmx.at> <1163522042.367229.123120@h54g2000cwb.googlegroups.com> <87slgm56dk.fsf@gmx.at> <1163523621.415342.237570@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1163526138 21676 80.91.229.2 (14 Nov 2006 17:42:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 17:42:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 18:42:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gk2IV-0006rc-Fj for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 18:42:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gk2IU-0001Mx-2k for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 12:42:10 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 81.182.19.19 Original-X-Trace: posting.google.com 1163525569 8334 127.0.0.1 (14 Nov 2006 17:32:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 14 Nov 2006 17:32:49 +0000 (UTC) In-Reply-To: <1163523621.415342.237570@h54g2000cwb.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.01 (Windows NT 5.0; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m7g2000cwm.googlegroups.com; posting-host=81.182.19.19; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143111 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38729 Archived-At: spamfilteraccount@gmail.com =EDrta: > Markus Triska =EDrta: > > "spamfilteraccount@gmail.com" writes: > > > > > Will I also be able to use next-error on the results of the first grep > > > from the match I left off after I'm done with the second grep? > > > > Yes. > > It really does work. Awesome! :) > I quickly made some convenience bindings for the grep buffer to support this. Hey, Drew! Don't you want to add something like this to grep-plus? It would be a good fit. (require 'compile) (require 'cl) (defvar my-grep-stack nil) (define-key compilation-minor-mode-map "s" 'my-grep-stack-buffer-push) (define-key compilation-minor-mode-map "q" 'my-grep-stack-buffer-pop) (defun my-grep-stack-buffer-push () (interactive) (push (current-buffer) my-grep-stack) (rename-uniquely) (message "Grep buffer pushed to stack.")) (defun my-grep-stack-buffer-pop () (interactive) (quit-window) (if my-grep-stack (let ((buffer (pop my-grep-stack))) (switch-to-buffer buffer) (message "Grep buffer popped from stack."))))