From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: Tue, 27 Jan 2004 12:24:55 -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 1075225141 19956 80.91.224.253 (27 Jan 2004 17:39:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2004 17:39:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 27 18:38:48 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 1AlXAl-0007f9-00 for ; Tue, 27 Jan 2004 18:38:47 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlXAl-0000iC-00 for ; Tue, 27 Jan 2004 18:38:47 +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 1AlX8Q-0003Ol-AS for emacs-devel@quimby.gnus.org; Tue, 27 Jan 2004 12:36:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AlWzW-0000Fq-TL for emacs-devel@gnu.org; Tue, 27 Jan 2004 12:27:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlWyT-00087P-Mf for emacs-devel@gnu.org; Tue, 27 Jan 2004 12:26:37 -0500 Original-Received: from [164.107.123.5] (helo=cis.ohio-state.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlWxO-0007Va-DF for emacs-devel@gnu.org; Tue, 27 Jan 2004 12:24:58 -0500 Original-Received: from mu.cis.ohio-state.edu (daemon@mu.cis.ohio-state.edu [164.107.112.41]) by cis.ohio-state.edu (8.11.6p2-20030924/8.11.6) with ESMTP id i0RHOtP16372; Tue, 27 Jan 2004 12:24:55 -0500 (EST) Original-Received: (from rutt@localhost) by mu.cis.ohio-state.edu (8.11.6p2-20030924/8.11.6) id i0RHOtE20792; Tue, 27 Jan 2004 12:24:55 -0500 (EST) X-Authentication-Warning: mu.cis.ohio-state.edu: rutt set sender to rutt.4@osu.edu using -f Original-To: Ted Zlatanov Mail-Followup-To: Ted Zlatanov , emacs-devel@gnu.org In-Reply-To: <4n8yjto16h.fsf@collins.bwh.harvard.edu> (Ted Zlatanov's message of "Tue, 27 Jan 2004 10:34:30 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) 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:19511 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19511 Ted Zlatanov writes: > I like your patch, but would it be possible to have an intelligent > dwim-next that did the right thing in Emacs? It would look for > *compilation* then *grep* then *occur*, and depending on which one it > found it could call the appropriate "next" function (maybe the order > would be customizable too). 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. 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. -- Benjamin