From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: 27 Jan 2004 14:04:29 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3F69E6FF.9050702@yahoo.com> <4n8yjto16h.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075230357 1219 80.91.224.253 (27 Jan 2004 19:05:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2004 19:05:57 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 27 20:05:43 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlYWt-0006Lm-00 for ; Tue, 27 Jan 2004 20:05:43 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlYWt-0002YU-00 for ; Tue, 27 Jan 2004 20:05:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlYWW-0004wT-OD for emacs-devel@quimby.gnus.org; Tue, 27 Jan 2004 14:05:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AlYWJ-0004v9-AJ for emacs-devel@gnu.org; Tue, 27 Jan 2004 14:05:07 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlYVm-0004gF-24 for emacs-devel@gnu.org; Tue, 27 Jan 2004 14:05:05 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlYVl-0004fo-Kh for emacs-devel@gnu.org; Tue, 27 Jan 2004 14:04:33 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 250402101C; Tue, 27 Jan 2004 14:04:30 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id C8D548C6F9; Tue, 27 Jan 2004 14:04:29 -0500 (EST) Original-To: Benjamin Rutt In-Reply-To: Original-Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19516 > I'd prefer the default be to use whichever one (compilation, grep, > occur) was launched most recently. Sometimes I have really old > compile buffers laying around (I never kill them typically). And I > wouldn't want the presence of those old compilation buffers to mean > that I couldn't use this cool new 'C-x `' functionality for the M-x > occur I just ran a second ago. I don't usually kill *grep* buffers > either. `compile' and `grep' already do that. > In order to accomplish this, probably M-x compile, M-x occur and M-x > grep would have to set some variable like `next-error-follow-command' > to 'compile, 'occur or 'grep, respectively, inside those function > definitions. The variable already exists and is called `compilation-last-buffer'. Stefan