bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1863: Improved grep prompt


From: richardeng
Subject: bug#1863: Improved grep prompt
Date: Fri, 16 Jan 2009 17:27:33 +0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]