From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Wed, 19 Apr 2006 11:10:48 -0700 Organization: Newt Software Message-ID: <873bg9jv13.fsf@olgas.newt.com> References: <874q0qudex.fsf@blarg.net> <4445033A.2030002@student.lu.se> <85u08phhzb.fsf@lola.goethe.zz> <874q0pk8xm.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145470329 26113 80.91.229.2 (19 Apr 2006 18:12:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 18:12:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 20:12:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWH9P-0001Y2-9U for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 20:11:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWH9O-0000JK-KC for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 14:11:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWH9B-0000It-3q for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:11:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWH98-0000IM-FQ for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:11:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWH98-0000IJ-6b for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:11:22 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FWHAH-0001CY-R2 for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:12:34 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FWH8w-0001SU-Hn for emacs-devel@gnu.org; Wed, 19 Apr 2006 20:11:10 +0200 Original-Received: from adsl-69-236-173-190.dsl.pltn13.pacbell.net ([69.236.173.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Apr 2006 20:11:10 +0200 Original-Received: from wohler by adsl-69-236-173-190.dsl.pltn13.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Apr 2006 20:11:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-236-173-190.dsl.pltn13.pacbell.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Oe1KgKOQGxeduz9t9Uq3ENOTsE0= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53093 Archived-At: Stefan Monnier writes: >>> So what you suggest is that the current grep-tree should replace >>> grep-find/find-grep as the default interface, and the current >>> grep-find functionality should be selected if a prefix arg is >>> specified. > >> This is somewhat radical and might surprise people. > > Surprise is not bad. If you're producing a horror film, perhaps. But not in a UI. ;-) I agree with Eli--there are way too many grep commands (and that was before I just learned about grep-tree). find-grep is redundant with grep's -r and --include options. grep-tree is redundant with find-grep. We only need two: grep (which shows you the grep hits) and grep-dired (which lists the matched files in dired). The default UIs for both should be simple (like grep-tree), but should allow editing of the command with the prefix argument. Another thought: it would be nice if the -i option were passed to grep if case-fold-search is t. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.