unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: mange@freemail.hu, emacs-devel@gnu.org
Subject: Re: [mange@freemail.hu: grep-tree doesn't shell-quote-argument]
Date: Mon, 24 Apr 2006 13:05:14 +0200	[thread overview]
Message-ID: <m3k69f5j4l.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1FXmbC-0000G8-7M@fencepost.gnu.org> (Richard Stallman's message of "Sun, 23 Apr 2006 17:58:34 -0400")

Richard Stallman <rms@gnu.org> writes:

>     The old grep-find interface is "a hack" (a  way to
>     start a compile-like command which runs find | grep.
>
> But it is quite like M-x grep, and that makes for consistency.  I
> think that nearly everyone who uses grep-find will have used M-x grep
> first, and will therefore find grep-find quite natural.

Unless they also find grep quite un-natural (and unfriendly)!  I do!

In practice, I almost never use M-x grep, as I usually want to search
in subdirectores too, and grep doesn't do that.  And I find the old
grep-find interface way too slow.

So I use M-x grep-tree 99% of the time -- and really dislike M-x grep
when I use it.

> It could be the case that we could make both grep and grep-find easier
> for beginners to use, in a consistent way.  

Yes, IMO the right approach would be to change M-x grep too to be
like (the new) M-x grep-find, i.e. prompt for REGEXP + FILES, and
then run grep with the proper args.  

A user can still use C-u M-x grep to enter the "expert mode"
with the old-style shell command.  

And setting grep-prompt-style to 'shell will get the old behaviour of
both M-x grep and M-x grep-find.

Now, that would ensure consistency, and give both M-x grep and M-x
grep-find a much more user friendly interface.

>                                             But let's wait till after
> the release for that change.
>
I know we are close to starting the pretest, but since grep-tree is new,
we should definitely fix this issue before the release.  

After the release, people will start using and customize it, so when
we later clean things up, we would remove grep-tree and rename various
defcustoms; that would be incompatible too!

So it's now or never...

> For now, I would suggest we consider making the new feature grep-tree
> more convenient in a way that isn't incompatible for old features
> such as grep-find.

M-x grep-tree was convenient already -- but it was suggested to
merge it into grep-find ...  which need to make "incompatible"
changes to grep-find to remain convenient.

The code for grep-find is almost complete anyway -- and I can easily
modify M-x grep to comply.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  parent reply	other threads:[~2006-04-24 11:05 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k69f5j4l.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=mange@freemail.hu \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).