From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Nested grep Date: Thu, 16 Nov 2006 09:35:41 -0800 Message-ID: References: <1163664141.997812.261210@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1163698640 2675 80.91.229.2 (16 Nov 2006 17:37:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Nov 2006 17:37:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 16 18:37:15 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 1GklAm-0002Rf-0N for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 18:37:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GklAl-0005zt-1u for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 12:37:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GklAW-0005xm-6t for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 12:36:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GklAU-0005wf-UF for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 12:36:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GklAU-0005wN-9Y for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 12:36:54 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GklAU-0002er-E3 for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 12:36:54 -0500 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id kAGHabbY017412; Thu, 16 Nov 2006 10:36:37 -0700 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id kAGHAAOH002170; Thu, 16 Nov 2006 10:36:36 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by rcsmt250.oracle.com with ESMTP id 2210119531163698546; Thu, 16 Nov 2006 10:35:46 -0700 Original-To: , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1163664141.997812.261210@e3g2000cwe.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= 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:38759 Archived-At: > > OK. I just added similar commands to compile+20.el, for use with Emacs > > versions prior to 22: > http://www.emacswiki.org/cgi-bin/wiki/compile%2b20.el. > > However, since there is no grep-specific keymap prior to Emacs > 22, I have > > not bound the new commands. > > > > Thanks, it's working well. Though I'm missing something like I > originally suggested: an easy way to go back to the previous grep > buffer. > > I think when one opens a new grep buffer (while keeping the previous > one) then one usually does it to quickly investigate something which > occured when perusing the first grep. So it would be logical to have a > means to easily close the current grep buffer and return to the > previous one. > > Currently, in your implementation pressing 'q' in the grep buffer only > closes the current one leaving to the user to switch to the previous > grep buffer. Wouldn't make it more sense for q to switch to the last > recently used grep buffer if there is one? With an option maybe? Hi Tamas. Just use `choose-grep-buffer', instead of `q'. That will switch to another grep buffer in place of the current one. The default value is now the last-used grep buffer, so just use M-n to get that. Download the latest compile+20.el - I just added the completion default. I hadn't bothered to do that before (grep+.el uses `grep-last-buffer', which isn't defined in Emacs 20). HTH - Drew