From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Wed, 19 Apr 2006 13:41:49 +0200 Message-ID: References: <874q0qudex.fsf@blarg.net> <4445033A.2030002@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145447057 2102 80.91.229.2 (19 Apr 2006 11:44:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 11:44:17 +0000 (UTC) Cc: offby1@blarg.net, lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 19 13:44:14 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 1FWB6H-00075C-UX for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 13:44:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWB6H-00084O-Es for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 07:44:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWB64-00083r-LO for emacs-devel@gnu.org; Wed, 19 Apr 2006 07:43:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWB63-00083Y-Lh for emacs-devel@gnu.org; Wed, 19 Apr 2006 07:43:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWB63-00083U-HM for emacs-devel@gnu.org; Wed, 19 Apr 2006 07:43:47 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWB77-00075l-CB; Wed, 19 Apr 2006 07:44:53 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 0BE5CA5003D; Wed, 19 Apr 2006 13:43:42 +0200 (CEST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed, 19 Apr 2006 12:16:58 +0300") 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:53064 Archived-At: Eli Zaretskii writes: >> IMO, grep-tree is much more user >> friendly than grep and grep-find (I use grep-tree all the time), >> while others obviously prefer the power of grep and grep-find. > > Then making one a variant of the other should save us from having to > remember another command name. > > The normal Emacs way: use the prefix argument. 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. That would be ok with me, and I will make the changes if people agree. This should be done before the release as grep-tree is new in 22.x, and there are several defcustoms which should be renamed as part of this rework. > >> find-grep-dired is completely different in the sense that it >> doesn't list the matches, but rather presents a dired buffer >> which lists the files which matches the regexp. > > It's not ``completely different'', because in most situations the user > wants to visit the matching files. The only real reason to prefer > find-grep-dired to the others is when you want to invoke Dired > commands on the matching files. YMMV, but to me that's "completely different". So I still don't see how to merge find-grep-dired into grep-find. (a negative arg perhaps? wouldn't the be too obscure?) I suggest we leave that one alone! -- Kim F. Storm http://www.cua.dk