From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: Tue, 27 Jan 2004 22:53:48 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4n7jzc919v.fsf@collins.bwh.harvard.edu> References: <3F69E6FF.9050702@yahoo.com> <4n8yjto16h.fsf@collins.bwh.harvard.edu> <4nisixjibl.fsf@collins.bwh.harvard.edu> <20040127230323.GB5407@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075262242 716 80.91.224.253 (28 Jan 2004 03:57:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2004 03:57:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 28 04:57:17 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 1AlgpJ-00028Y-00 for ; Wed, 28 Jan 2004 04:57:17 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlgpJ-0005SP-00 for ; Wed, 28 Jan 2004 04:57:17 +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 1Algny-0001Np-0E for emacs-devel@quimby.gnus.org; Tue, 27 Jan 2004 22:55:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Algnr-0001Ib-Qd for emacs-devel@gnu.org; Tue, 27 Jan 2004 22:55:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlgnK-0000R5-8b for emacs-devel@gnu.org; Tue, 27 Jan 2004 22:55:45 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlgnJ-0000QE-Ky for emacs-devel@gnu.org; Tue, 27 Jan 2004 22:55:13 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlgnJ-00075t-00 for ; Wed, 28 Jan 2004 04:55:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlgnH-00075l-00 for ; Wed, 28 Jan 2004 04:55:11 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlgnH-00007j-00 for ; Wed, 28 Jan 2004 04:55:11 +0100 Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:yCoT3L0yZifbl3PJk5DFNuJM0b8= 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:19522 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19522 On Tue, 27 Jan 2004, miles@gnu.org wrote: On Tue, Jan 27, 2004 at 02:35:26PM -0500, Ted Zlatanov wrote: >> when occur-mode is called, and then I can rewrite dwim-next as >> needed. > > I'm confused; since `next-error' already supports the desired > functionality, why is `dwim-next' needed at all??? Two reasons: 1) next-error does not support the occur mode, which was what started the discussion in the firts place. I tried to fix this with minimum changes to the Emacs sources. 2) next-error is IMHO a bad name for a function that finds the next match in grep mode, and the next occurrence in occur mode. The second reason is no big deal, just my opinion. Ted