From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: Tue, 02 Mar 2004 10:51:13 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <4nisixjibl.fsf@collins.bwh.harvard.edu> <20040127230323.GB5407@fencepost> <4n7jzc919v.fsf@collins.bwh.harvard.edu> <4nn085i7nl.fsf@collins.bwh.harvard.edu> <4noese37h0.fsf@collins.bwh.harvard.edu> <4nbrodxwqm.fsf@collins.bwh.harvard.edu> <4n8yjcccvj.fsf@collins.bwh.harvard.edu> <4nwu6sp7ni.fsf@collins.bwh.harvard.edu> <4n1xohpsvt.fsf@collins.bwh.harv Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078266036 29957 80.91.224.253 (2 Mar 2004 22:20:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2004 22:20:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 02 23:20:31 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 1AyIFb-0001wP-00 for ; Tue, 02 Mar 2004 23:20:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AyIFa-00019S-00 for ; Tue, 02 Mar 2004 23:20:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyIEm-0001BI-Tw for emacs-devel@quimby.gnus.org; Tue, 02 Mar 2004 17:19:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyCJu-0000ge-Qa for emacs-devel@gnu.org; Tue, 02 Mar 2004 11:00:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyCJI-0000WU-26 for emacs-devel@gnu.org; Tue, 02 Mar 2004 11:00:27 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyCCa-0007Fp-DU for emacs-devel@gnu.org; Tue, 02 Mar 2004 10:53:00 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AyCAr-0008Pa-6r; Tue, 02 Mar 2004 10:51:13 -0500 Original-To: Ted Zlatanov In-reply-to: <4n8yikpjcz.fsf@collins.bwh.harvard.edu> (message from Ted Zlatanov on Mon, 01 Mar 2004 12:28:28 -0500) 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:20227 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20227 But (and this is the important part) M-x occur needs to be run before this can happen. Indeed, the issue is what happens after the user has typed M-x occur. An Occur buffer will be picked if next-error is run inside the Occur buffer; if next-error-last-buffer is set to the Occur buffer (so a grep or a compile has not been run meanwhile); I think that will do the right thing in simple cases. or if an Occur buffer is the first usable buffer found in the buffer list. Perhaps this will work well, but we should keep our eyes open for cases where users don't like it.