From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Marshall, Simon" Newsgroups: gmane.emacs.devel Subject: RE: Add M-x occur to the menu-bar Date: Fri, 19 Sep 2003 10:10:24 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1063962745 32380 80.91.224.253 (19 Sep 2003 09:12:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2003 09:12:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Sep 19 11:12:23 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0HJP-0004Oz-00 for ; Fri, 19 Sep 2003 11:12:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0HNn-00050C-00 for ; Fri, 19 Sep 2003 11:16:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0HIY-0007Sn-9b for emacs-devel@quimby.gnus.org; Fri, 19 Sep 2003 05:11:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A0HHu-00073c-2F for emacs-devel@gnu.org; Fri, 19 Sep 2003 05:10:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A0HHm-0006Xr-0X for emacs-devel@gnu.org; Fri, 19 Sep 2003 05:10:44 -0400 Original-Received: from [212.125.75.19] (helo=mail14.messagelabs.com) by monty-python.gnu.org with smtp (Exim 4.22) id 1A0HHa-0006Bj-2R for emacs-devel@gnu.org; Fri, 19 Sep 2003 05:10:30 -0400 X-VirusChecked: Checked X-Env-Sender: simon.marshall@misys.com X-Msg-Ref: server-39.tower-14.messagelabs.com!1063962626!380640 X-StarScan-Version: 5.0.7; banners=-,-,- Original-Received: (qmail 5557 invoked from network); 19 Sep 2003 09:10:26 -0000 Original-Received: from unknown (HELO pigeon.misys.com) (217.196.235.2) by server-39.tower-14.messagelabs.com with SMTP; 19 Sep 2003 09:10:26 -0000 Original-Received: From gull.misys.com ([10.80.48.7]) by pigeon.misys.com (WebShield SMTP v4.5 MR1a); id 106396286331; Fri, 19 Sep 2003 10:14:23 +0100 Original-Received: by gull.midas-kapiti.com with Internet Mail Service (5.5.2653.19) id ; Fri, 19 Sep 2003 10:13:31 +0100 Original-To: "'rms@gnu.org'" X-Mailer: Internet Mail Service (5.5.2653.19) 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:16479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16479 I meant, to list the ideas explicitly: - Make list-matching-lines and grep have the same UI (or wrapping grep in a list-matching-lines-in-files) and their buffers have the same major-mode. - Add something like list-matching-lines-in-buffers, taking a regexp to match buffer names. - Replace Tools/Search Files menu entry with Tools/List Matching Lines menu containing menu entries: In Buffer # list-matching-lines In Buffers... # list-matching-lines-in-buffers In Files... # grep or list-matching-lines-in-files --- Goto First Match Goto Previous Match Goto Next Match Goto Last Match --- Stop Searching - Add menu to the major-mode (occur or whatever it would be called) containing menu entries: Goto First Match Goto Previous Match Goto Next Match Goto Last Match --- Stop Searching (OK, I never mentioned the last item before.) I also asked what the alternative UI for grep was, the one you think may already exist, because I couldn't find it. If that bit has already been done, or partly done, then all the better. Do you know what the alternative is? (Maybe it was added for 21.4, in which case it's no surprise I couldn't find it.) Simon. -----Original Message----- From: Richard Stallman [mailto:rms@gnu.org] Sent: 17 September 2003 19:03 To: Marshall, Simon Cc: emacs-devel@gnu.org Subject: Re: Add M-x occur to the menu-bar I wrote: All else being equal, I agree. People have tried making interfaces for grep that separate the arguments. I think one such is actually installed as an alternative. But they are simply less convenient than M-x grep. You replied: Should something be added to TODO or would anyone like to volunteer to try it? I am confused. Try what? Did you mean this idea? It might make sense for C-x ` to work with Occur.