unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 1863@emacsbugs.donarmstrong.com, jidanni@jidanni.org
Subject: bug#1863: Improved grep prompt
Date: Fri, 16 Jan 2009 02:31:03 +0200	[thread overview]
Message-ID: <87fxjkccbk.fsf@jurta.org> (raw)
In-Reply-To: <e01d8a50901141755t490f291ap4b16fc312ebb9f7c@mail.gmail.com> (Lennart Borgman's message of "Thu, 15 Jan 2009 02:55:04 +0100")

>>> 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"))

-- 
Juri Linkov
http://www.jurta.org/emacs/






  reply	other threads:[~2009-01-16  0:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12  2:07 bug#1863: Improved grep prompt jidanni
2009-01-14  1:18 ` Juri Linkov
2009-01-14  1:33   ` jidanni
2009-01-14 23:52     ` Juri Linkov
2009-01-15  0:40       ` jidanni
2009-01-15  1:09         ` Lennart Borgman
2009-01-15  1:27           ` Juri Linkov
2009-01-15  1:55             ` Lennart Borgman
2009-01-16  0:31               ` Juri Linkov [this message]
2009-01-16  0:54                 ` Lennart Borgman
2009-01-16  9:27                 ` richardeng
2009-01-15  2:54         ` Stefan Monnier
2018-04-15 22:12   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxjkccbk.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=1863@emacsbugs.donarmstrong.com \
    --cc=jidanni@jidanni.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).