From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Wed, 19 Apr 2006 09:14:46 -0400 Message-ID: <874q0pk8xm.fsf-monnier+emacs@gnu.org> References: <874q0qudex.fsf@blarg.net> <4445033A.2030002@student.lu.se> <85u08phhzb.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145452531 21243 80.91.229.2 (19 Apr 2006 13:15:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 13:15:31 +0000 (UTC) Cc: offby1@blarg.net, lennart.borgman.073@student.lu.se, Eli Zaretskii , emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 15:15:24 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 1FWCWR-0006E4-6v for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 15:15:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCWQ-0005lt-LO for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 09:15:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWCWE-0005l1-Ux for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:14:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWCWC-0005kp-JQ for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:14:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCWC-0005km-D6 for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:14:52 -0400 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWCXG-0006lg-G0; Wed, 19 Apr 2006 09:15:58 -0400 Original-Received: from alfajor ([70.53.192.213]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060419131448.MBYY1543.tomts43-srv.bellnexxia.net@alfajor>; Wed, 19 Apr 2006 09:14:48 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id E93B02FD41; Wed, 19 Apr 2006 09:14:46 -0400 (EDT) Original-To: David Kastrup In-Reply-To: <85u08phhzb.fsf@lola.goethe.zz> (David Kastrup's message of "Wed, 19 Apr 2006 14:23:20 +0200") 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:53071 Archived-At: >> 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. Confusing the user would be bad and making her do something she didn't intend to do would be even worse, but I don't think either of them applies here: the prompt should be sufficiently different that she should immediately realize what's going on. I think that what Kim suggests (rename grep-find to grep-find-command, grep-tree to grep-find-template, and introduce a new grep-find which calls either of the two depending on nilness of current-arg-prefix) is the way to go. Much better than introducing a complex configuration and prefix-arg protocol to choose what to do when. Stefan