From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Date: Wed, 19 Apr 2006 12:16:58 +0300 Message-ID: References: <874q0qudex.fsf@blarg.net> <4445033A.2030002@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1145438240 5035 80.91.229.2 (19 Apr 2006 09:17:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 09:17:20 +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 11:17:17 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 1FW8oD-0000Hc-PH for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 11:17:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW8oD-0005aW-6W for ged-emacs-devel@m.gmane.org; Wed, 19 Apr 2006 05:17:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FW8ny-0005aM-81 for emacs-devel@gnu.org; Wed, 19 Apr 2006 05:16:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FW8nw-0005Zv-NV for emacs-devel@gnu.org; Wed, 19 Apr 2006 05:16:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FW8nw-0005Zs-Km for emacs-devel@gnu.org; Wed, 19 Apr 2006 05:16:56 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FW8p0-0003Lg-UB for emacs-devel@gnu.org; Wed, 19 Apr 2006 05:18:03 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-206-41.inter.net.il [80.230.206.41]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DDW81250 (AUTH halo1); Wed, 19 Apr 2006 12:16:52 +0300 (IDT) Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:53063 Archived-At: > From: storm@cua.dk (Kim F. Storm) > Date: Wed, 19 Apr 2006 10:59:44 +0200 > Cc: Eric Hanchrow , emacs-devel@gnu.org > > > Eli Zaretskii writes: > > Btw, isn't it confusing that we have no less than 3 different > > commands (find-grep-dired, grep-find, and grep-tree) to do > > the same job? > > Why? Because it is hard to remember which one does what, unless you use them every day. I only use them once in several months, and I always have to read the documentation to remember which one I need for the particular job at hand. > Have you actually looked at them and what they do? Well, I have, and I trust that Lennart did as well. > Like grep-find, grep-tree recurses directories listing matching lines, > but the interface it completely different, as grep-tree prompts > individually for regexp, files, and starting directory (with normal > directory name completion). It also remembers your previous choice > for each parameter, so you can quickly repeat a previous search > starting in a different directory. Don't you see how these are equivalent? > 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. > 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. > I don't see any way to merge them The normal Emacs way: use the prefix argument. > ...or how doing so can "save a lot of time for many people". For me, that time is wasted on reading the doc strings of the commands.