From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Wed, 19 Apr 2006 20:23:28 +0200 Message-ID: <857j5lfmqn.fsf@lola.goethe.zz> References: <874q0qudex.fsf@blarg.net> <4445033A.2030002@student.lu.se> <85u08phhzb.fsf@lola.goethe.zz> <874q0pk8xm.fsf-monnier+emacs@gnu.org> <873bg9jv13.fsf@olgas.newt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145471039 28628 80.91.229.2 (19 Apr 2006 18:23:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 18:23:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 20:23:57 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 1FWHLE-0004A0-1y for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 20:23:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWHLD-0004gE-Gx for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 14:23:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWHL2-0004fn-G5 for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:23:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWHL1-0004fa-CX for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:23:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWHL1-0004fW-1k for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:23:39 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWHMA-0002PS-QZ for emacs-devel@gnu.org; Wed, 19 Apr 2006 14:24:50 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FWHL0-00052b-44; Wed, 19 Apr 2006 14:23:38 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 23AB81C3DB49; Wed, 19 Apr 2006 20:23:28 +0200 (CEST) Original-To: Bill Wohler In-Reply-To: <873bg9jv13.fsf@olgas.newt.com> (Bill Wohler's message of "Wed, 19 Apr 2006 11:10:48 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53096 Archived-At: Bill Wohler writes: > 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). Yes. > find-grep is redundant with grep's -r and --include > options. No. Only the most primitive calls of find-grep can be catered for by "grep's" -r and --include options, and many greps don't even have those options. > grep-tree is redundant with find-grep. Which is why we are discussing how to merge them... > We only need two: grep (which shows you the grep hits) and > grep-dired (which lists the matched files in dired). Disagree. Find can't be obliterated for all usage cases, but using it for something like *.[ch] would certainly be inconvenient. > 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. The setting of case-fold-search rarely is fine-tuned to the current editing need, so I doubt that passing it on to grep would feel natural to people. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum