From: Eli Zaretskii <eliz@gnu.org>
Cc: offby1@blarg.net, lennart.borgman.073@student.lu.se, emacs-devel@gnu.org
Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument]
Date: Wed, 19 Apr 2006 12:16:58 +0300 [thread overview]
Message-ID: <uy7y1x6ut.fsf@gnu.org> (raw)
In-Reply-To: <m3ejzu9bzz.fsf@kfs-l.imdomain.dk> (storm@cua.dk)
> From: storm@cua.dk (Kim F. Storm)
> Date: Wed, 19 Apr 2006 10:59:44 +0200
> Cc: Eric Hanchrow <offby1@blarg.net>, emacs-devel@gnu.org
>
>
> Eli Zaretskii <eliz@gnu.org> 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.
next prev parent reply other threads:[~2006-04-19 9:16 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 12:57 [mange@freemail.hu: grep-tree doesn't shell-quote-argument] Richard Stallman
2006-04-18 14:02 ` Kim F. Storm
2006-04-18 14:44 ` Eli Zaretskii
2006-04-18 15:11 ` Eric Hanchrow
2006-04-18 15:18 ` Lennart Borgman
2006-04-19 8:59 ` Kim F. Storm
2006-04-19 9:15 ` Romain Francoise
2006-04-19 9:16 ` Eli Zaretskii [this message]
2006-04-19 11:41 ` Kim F. Storm
2006-04-19 12:23 ` David Kastrup
2006-04-19 12:51 ` Kim F. Storm
2006-04-19 13:09 ` David Kastrup
2006-04-19 21:13 ` Richard Stallman
2006-04-19 13:14 ` Stefan Monnier
2006-04-19 13:28 ` David Kastrup
2006-04-19 13:58 ` Stefan Monnier
2006-04-19 14:09 ` David Kastrup
2006-04-19 14:58 ` Kim F. Storm
2006-04-19 15:10 ` David Kastrup
2006-04-19 16:59 ` Kevin Rodgers
2006-04-19 17:08 ` David Kastrup
2006-04-19 14:52 ` Kim F. Storm
2006-04-19 15:03 ` David Kastrup
2006-04-19 18:10 ` Bill Wohler
2006-04-19 18:15 ` Drew Adams
2006-04-19 18:23 ` David Kastrup
2006-04-19 18:34 ` Bill Wohler
2006-04-19 21:13 ` Richard Stallman
2006-04-19 12:49 ` Stefan Monnier
2006-04-18 15:27 ` Romain Francoise
2006-04-19 4:17 ` Richard Stallman
2006-04-19 8:57 ` Eli Zaretskii
2006-04-19 21:12 ` Richard Stallman
2006-04-20 9:53 ` Eli Zaretskii
2006-04-21 8:27 ` Kim F. Storm
2006-04-21 14:47 ` Magnus Henoch
2006-04-21 17:22 ` Stefan Monnier
2006-04-21 20:04 ` Kim F. Storm
2006-04-21 20:40 ` Stefan Monnier
2006-04-21 21:35 ` Kim F. Storm
2006-04-22 12:03 ` Richard Stallman
2006-04-22 12:41 ` David Kastrup
2006-04-23 16:06 ` Bill Wohler
2006-04-23 16:19 ` Bill Wohler
2006-04-22 23:02 ` Kim F. Storm
2006-04-23 21:58 ` Richard Stallman
2006-04-23 22:06 ` David Kastrup
2006-04-24 11:51 ` Richard Stallman
2006-04-24 12:04 ` David Kastrup
2006-04-25 16:46 ` Richard Stallman
2006-04-24 12:10 ` Kim F. Storm
2006-04-24 22:46 ` Kim F. Storm
2006-04-25 16:47 ` Richard Stallman
2006-04-24 11:05 ` Kim F. Storm
2006-04-24 11:11 ` Miles Bader
2006-04-24 11:24 ` David Kastrup
2006-04-24 11:31 ` Miles Bader
2006-04-24 11:43 ` David Kastrup
2006-04-24 11:52 ` Miles Bader
2006-04-24 17:52 ` Richard Stallman
2006-04-24 18:16 ` David Kastrup
2006-04-24 20:38 ` Chong Yidong
2006-04-25 16:48 ` Richard Stallman
2006-04-26 8:27 ` Kim F. Storm
2006-04-27 4:36 ` Richard Stallman
2006-04-25 9:06 ` Kim F. Storm
2006-04-29 3:50 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uy7y1x6ut.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman.073@student.lu.se \
--cc=offby1@blarg.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.