[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: grep-tree doesn't shell-quote-argument]
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: grep-tree doesn't shell-quote-argument] |
Date: |
Wed, 19 Apr 2006 10:59:44 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> 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? They do it differently and each serves a different audience.
Eric Hanchrow wrote:
> Yes. I've been using Emacs for 20 years, more or less, and only knew
> about grep-find until just now :-|
So what?
Lennart Borgman <address@hidden> writes:
> Too me it seems like merging them into one command could possibly save
> a lot of time for many people.
Huh?
Have you actually looked at them and what they do?
Command Input Output
----------------------------------------------------------------------
grep Shell Command List of matching lines
grep ...
grep-find Shell Command List of matching lines
find ... | grep ... (recurses directories)
grep-tree Regexp, Files, Dir List of matching lines
(recurses directorires)
find-grep-dired Dir, Regexp List of matching FILES
(recurses directorires)
So grep and grep-find are similar in the sense that they both
prompts the user for a SHELL COMMAND -- which is flexible but
low-level (IMO).
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. 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.
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.
So they all serve a different purpose, and I don't see any way to
merge them ...or how doing so can "save a lot of time for many people".
--
Kim F. Storm <address@hidden> http://www.cua.dk
- address@hidden: grep-tree doesn't shell-quote-argument], Richard Stallman, 2006/04/18
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Kim F. Storm, 2006/04/18
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Eli Zaretskii, 2006/04/18
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Eric Hanchrow, 2006/04/18
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Lennart Borgman, 2006/04/18
- Re: address@hidden: grep-tree doesn't shell-quote-argument],
Kim F. Storm <=
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Romain Francoise, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Eli Zaretskii, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Kim F. Storm, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], David Kastrup, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Kim F. Storm, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], David Kastrup, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Richard Stallman, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Stefan Monnier, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], David Kastrup, 2006/04/19
- Re: address@hidden: grep-tree doesn't shell-quote-argument], Stefan Monnier, 2006/04/19