From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: Wed, 28 Jan 2004 15:45:53 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <40183BA1.2070204@yahoo.com> References: <3F69E6FF.9050702@yahoo.com> <4n8yjto16h.fsf@collins.bwh.harvard.edu> <4nisixjibl.fsf@collins.bwh.harvard.edu> <20040127230323.GB5407@fencepost> <4n7jzc919v.fsf@collins.bwh.harvard.edu> <4nd694yt2a.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075330152 19992 80.91.224.253 (28 Jan 2004 22:49:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2004 22:49:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 28 23:49:06 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 1AlyUb-0005ST-00 for ; Wed, 28 Jan 2004 23:49:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlyUb-0004Zj-00 for ; Wed, 28 Jan 2004 23:49:05 +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 1AlySx-0003c9-Kf for emacs-devel@quimby.gnus.org; Wed, 28 Jan 2004 17:47:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AlySp-0003bU-NF for emacs-devel@gnu.org; Wed, 28 Jan 2004 17:47:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlySI-0003XA-Ny for emacs-devel@gnu.org; Wed, 28 Jan 2004 17:47:13 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlyRU-0003Ph-AM for emacs-devel@gnu.org; Wed, 28 Jan 2004 17:45:52 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlyRQ-0003Ks-00 for ; Wed, 28 Jan 2004 23:45:50 +0100 Original-Received: from 170.207.51.80 ([170.207.51.80]) by news.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Jan 28 22:45:50 2004 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 1AlyRO-0003Kk-00 for ; Wed, 28 Jan 2004 23:45:46 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AlyRO-00055b-00 for ; Wed, 28 Jan 2004 23:45:46 +0100 Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org Gmane-NNTP-Posting-Host: 170.207.51.80 User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:19532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19532 Ted Zlatanov wrote: > On 28 Jan 2004, monnier@iro.umontreal.ca wrote: >>>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. >> >>That's probably tru. If you can come up with a better name, maybe >>we can change it. I don't find dwim-next to be much btter. > > I would just defalias, since we're patching next-error anyhow. Some > names I thought of: > > (additive) > next-error-or-occurrence (hard to spell) > next-error-or-occur (but what if other modes are added?) > next-error-or-spot > > (different altogether) > next-instance > next-place > next-interesting > next-dwim (defalias 'next-match 'next-error) ; for grep (defalias 'next-occurrence 'occur-next) ; for occur -- Kevin Rodgers