From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#1863: Improved grep prompt Date: Fri, 16 Jan 2009 02:31:03 +0200 Organization: JURTA Message-ID: <87fxjkccbk.fsf@jurta.org> References: <87mydt4f9y.fsf@jurta.org> <87ljtdcsfs.fsf@jidanni.org> <87k58x1hq6.fsf@jurta.org> Reply-To: Juri Linkov , 1863@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232067831 30795 80.91.229.12 (16 Jan 2009 01:03:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 01:03:51 +0000 (UTC) Cc: 1863@emacsbugs.donarmstrong.com, jidanni@jidanni.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 02:05:01 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 1LNd8u-0007qG-1m for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 02:05:01 +0100 Original-Received: from localhost ([127.0.0.1]:36442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNd7d-0004Cf-9X for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 20:03:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNd7S-000463-QC for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:03:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNd7R-00043i-8K for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:03:30 -0500 Original-Received: from [199.232.76.173] (port=35350 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNd7R-00043S-4r for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:03:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47193) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNd7Q-00025d-L1 for bug-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:03:29 -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 n0G13QXv023701; Thu, 15 Jan 2009 17:03:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0G0o4Nr019766; Thu, 15 Jan 2009 16:50:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 00:50:04 +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.123206670018238 (code B ref 1863); Fri, 16 Jan 2009 00:50:04 +0000 Original-Received: (at 1863) by emacsbugs.donarmstrong.com; 16 Jan 2009 00:45:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0G0irJD018230 for <1863@emacsbugs.donarmstrong.com>; Thu, 15 Jan 2009 16:44:54 -0800 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LNcpQ-0006rh-2o; Fri, 16 Jan 2009 02:44:52 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 15 Jan 2009 02:55:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: f2683d8df775da069012ccac6e6e6321 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 15 Jan 2009 20:03:30 -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:24189 Archived-At: >>> 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/