From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: richardeng Newsgroups: gmane.emacs.bugs Subject: bug#1863: Improved grep prompt Date: Fri, 16 Jan 2009 17:27:33 +0800 Message-ID: <49705305.5060304@foxmail.com> References: <87mydt4f9y.fsf@jurta.org> <87ljtdcsfs.fsf@jidanni.org> <87k58x1hq6.fsf@jurta.org> <87fxjkccbk.fsf@jurta.org> Reply-To: richardeng , 1863@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020604020902010609060007" X-Trace: ger.gmane.org 1232099039 6096 80.91.229.12 (16 Jan 2009 09:43:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 09:43:59 +0000 (UTC) Cc: jidanni@jidanni.org To: Juri Linkov , 1863@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 10:45:10 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNlG4-0000g0-IN for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 10:44:56 +0100 Original-Received: from localhost ([127.0.0.1]:44446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNlEn-0001SF-Oq for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 04:43:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNlEj-0001Ru-Fu for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:43:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNlEh-0001RR-LM for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:43:32 -0500 Original-Received: from [199.232.76.173] (port=44682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNlEh-0001RO-AL for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:43:31 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46477) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNlEg-0004X0-Mg for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:43:31 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G9hQOh011842; Fri, 16 Jan 2009 01:43:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0G9Z3rG009124; Fri, 16 Jan 2009 01:35:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: richardeng Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 09:35:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1863 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1863-submit@emacsbugs.donarmstrong.com id=B1863.12320980777546 (code B ref 1863); Fri, 16 Jan 2009 09:35:02 +0000 Original-Received: (at 1863) by emacsbugs.donarmstrong.com; 16 Jan 2009 09:27:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from smtpbg3.foxmail.com (smtpbg3.foxmail.com [121.14.102.33]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n0G9Ror9007532 for <1863@emacsbugs.donarmstrong.com>; Fri, 16 Jan 2009 01:27:53 -0800 Original-Received: from 172.25.76.137 (foxmail.com [172.25.76.137]) by smtpbg3 (foxmail.com) with SMTP id PJWlMhGK; Fri, 16 Jan 2009 17:27:40 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp2123209806070614171 Original-Received: from [192.168.1.111] (unknown [58.25.221.212]) by esmtp2.foxmail.com (ESMTP) with id ; Fri, 16 Jan 2009 17:27:34 +0800 (CST) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <87fxjkccbk.fsf@jurta.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 16 Jan 2009 04:43:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24201 Archived-At: This is a multi-part message in MIME format. --------------020604020902010609060007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Juri Linkov wrote: >>>> In your case I myself see nothing that can help then ;-) but I think >>>> newbees would benefit from having all the search and replace commands >>>> under search and replace in the edit menu. >>>> >>> I can't believe we still don't have these useful commands in the menu. >>> But why do you think they should be placed in the Edit menu? >>> >> That is where the search and replace commands normally are. Why do you >> doubt they should be there? >> > > The `Grep' menu entry is traditionally in the Tools menu because it reads > an external command like `Compile' and `Shell Command' do. So perhaps we > should add `rgrep' and `lgrep' to the Tools menu. > > A less controversial change is to add `rgrep' and `lgrep' to the > grep mode menu: > > Index: lisp/progmodes/grep.el > =================================================================== > RCS file: /sources/emacs/emacs/lisp/progmodes/grep.el,v > retrieving revision 1.98 > diff -u -r1.98 grep.el > --- lisp/progmodes/grep.el 5 Jan 2009 03:23:37 -0000 1.98 > +++ lisp/progmodes/grep.el 16 Jan 2009 00:27:48 -0000 > @@ -204,12 +204,18 @@ > (define-key map [menu-bar grep compilation-compile] > '(menu-item "Compile..." compile > :help "Compile the program including the current buffer. Default: run `make'")) > + (define-key map [menu-bar grep compilation-lgrep] > + '(menu-item "Local grep..." lgrep > + :help "User-friendly grep")) > + (define-key map [menu-bar grep compilation-rgrep] > + '(menu-item "Recursive grep..." rgrep > + :help "User-friendly recursive grep in directory tree")) > + (define-key map [menu-bar grep compilation-grep-find] > + '(menu-item "Grep via Find..." grep-find > + :help "Run grep via find, with user-specified args")) > (define-key map [menu-bar grep compilation-grep] > '(menu-item "Another grep..." grep > :help "Run grep, with user-specified args, and collect output in a buffer.")) > - (define-key map [menu-bar grep compilation-grep-find] > - '(menu-item "Recursive grep..." grep-find > - :help "Run grep via find, with user-specified args")) > (define-key map [menu-bar grep compilation-recompile] > '(menu-item "Repeat grep" recompile > :help "Run grep again")) > > I think many emacs users discovery useful command from the menu instead of searching the release notes. I suggest to add rgrep,lgrep,grep-find to menu. --------------020604020902010609060007 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Juri Linkov wrote:
In your case I myself see nothing that can help then ;-) but I think
newbees would benefit from having all the search and replace commands
under search and replace in the edit menu.
        
I can't believe we still don't have these useful commands in the menu.
But why do you think they should be placed in the Edit menu?
      
That is where the search and replace commands normally are. Why do you
doubt they should be there?
    

The `Grep' menu entry is traditionally in the Tools menu because it reads
an external command like `Compile' and `Shell Command' do.  So perhaps we
should add `rgrep' and `lgrep' to the Tools menu.

A less controversial change is to add `rgrep' and `lgrep' to the
grep mode menu:

Index: lisp/progmodes/grep.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/grep.el,v
retrieving revision 1.98
diff -u -r1.98 grep.el
--- lisp/progmodes/grep.el	5 Jan 2009 03:23:37 -0000	1.98
+++ lisp/progmodes/grep.el	16 Jan 2009 00:27:48 -0000
@@ -204,12 +204,18 @@
     (define-key map [menu-bar grep compilation-compile]
       '(menu-item "Compile..." compile
 		  :help "Compile the program including the current buffer.  Default: run `make'"))
+    (define-key map [menu-bar grep compilation-lgrep]
+      '(menu-item "Local grep..." lgrep
+		  :help "User-friendly grep"))
+    (define-key map [menu-bar grep compilation-rgrep]
+      '(menu-item "Recursive grep..." rgrep
+		  :help "User-friendly recursive grep in directory tree"))
+    (define-key map [menu-bar grep compilation-grep-find]
+      '(menu-item "Grep via Find..." grep-find
+		  :help "Run grep via find, with user-specified args"))
     (define-key map [menu-bar grep compilation-grep]
       '(menu-item "Another grep..." grep
 		  :help "Run grep, with user-specified args, and collect output in a buffer."))
-    (define-key map [menu-bar grep compilation-grep-find]
-      '(menu-item "Recursive grep..." grep-find
-		  :help "Run grep via find, with user-specified args"))
     (define-key map [menu-bar grep compilation-recompile]
       '(menu-item "Repeat grep" recompile
 		  :help "Run grep again"))

  
I think many emacs users discovery useful command from the menu instead of  searching the release notes.
I suggest to add rgrep,lgrep,grep-find to menu.


--------------020604020902010609060007--