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:09:30 +0200 Message-ID: <85lku1hfud.fsf@lola.goethe.zz> 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 1145452200 19968 80.91.229.2 (19 Apr 2006 13:10:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 13:10:00 +0000 (UTC) Cc: offby1@blarg.net, lennart.borgman.073@student.lu.se, Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 15:09: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 1FWCRO-0005MH-DR for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 15:09:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCRN-0003yC-S0 for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 09:09:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWCRC-0003xp-Tb for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:09:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWCRC-0003xS-2t for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:09:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWCRB-0003xN-TA for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:09:41 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWCSI-0006Gy-LY for emacs-devel@gnu.org; Wed, 19 Apr 2006 09:10:50 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FWCRA-0007iM-GY; Wed, 19 Apr 2006 09:09:40 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 64AA91C3DB49; Wed, 19 Apr 2006 15:09:30 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Wed, 19 Apr 2006 14:51:38 +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:53070 Archived-At: storm@cua.dk (Kim F. Storm) writes: > David Kastrup 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. > > True, but that's how things evolve :-) Sure, but we generally need two things for evolution: a) a recipe to put into NEWS and antinews how to get back the old behavior (there are always people shouting for that on any change). b) sort of a migration path so that those people can actually be made to swallow the new way piece by piece. > I imagine to implement it with grep-find being just a front-end to > two other commands grep-find-command and grep-find-template > (corresponding to the old grep-find and grep-tree). So an easy way > for a user to get the desired behaviour would be to defalias > grep-find to either of these if the default doesn't suit him. Customize by alias? Not really the most desirable thing in my book. >> How about making a configurable "grep-find-prompt" option that ... >> ... And use C-u M-x grep-find RET for being >> able to post-edit the command, and maybe C-u C-u M-x grep-find RET for >> getting the inverse than the default behavior. > > So we merge two commands into one (because people cannot remember > which is which), and then we add a new cryptic customize option to > configure what it should do by default, and a couple of prefix args to > tweak things even further. You make it sound like it would be a bad idea... Drop the "couple": just let grep-find prompt for everything when given a prefix argument. But I think a customization option for the default, namely whether to prompt for parts or the command, would be more reasonable than an _alias_ for selecting the default behavior. We don't usually customize by alias. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum