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 15:28:53 +0200 Message-ID: <85d5fdhey2.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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145453412 24591 80.91.229.2 (19 Apr 2006 13:30:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 13:30:12 +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:30: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 1FWCkV-0000RP-Rd for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 15:29:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCkV-0001wS-8q for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 09:29:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWCk1-0001cR-Ke for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:29:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWCk0-0001bc-2g for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:29:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCjz-0001bN-PZ for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:29:07 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWCl6-0008H7-P2 for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:30:16 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FWCjv-0008Jy-US; Wed, 19 Apr 2006 09:29:04 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B50731C3DB49; Wed, 19 Apr 2006 15:28:53 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <874q0pk8xm.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 19 Apr 2006 09:14:46 -0400") 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:53072 Archived-At: Stefan Monnier writes: > 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. Strike the complexity. Use of a prefix arg to make it possible to post-edit the command is, IMO, a good idea. Quite often one wants to start a command that is almost, but not quite, like the default recipe. Kim's suggestion to use an alias for configuration between two separate commands is not customize-friendly. And it offers no reasonable way to actually get both: prompting for the parts, and a final opportunity for editing the resulting command before sending it off. I think the latter is important enough to offer this with a prefix argument, and this can't be easily accomplished if there is no unified command that can actually prompt for the parts as well as the finished command. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum