unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Davi Leal <davi@leals.com>
To: emacs-devel@gnu.org
Cc: Phil Jackson <phil@shellarchive.co.uk>
Subject: Re: IDE features:  M-x find-grep
Date: Mon, 28 Apr 2008 00:10:05 +0200	[thread overview]
Message-ID: <200804280010.06357.davi@leals.com> (raw)
In-Reply-To: <87mynf80jv.fsf@shellarchive.co.uk>

Phil Jackson wrote:
> > So, instead of the current find-grep default command [1], emacs could
> > offer one which prune the repository control directories [2], [3], ...
> >
> >  [1] find . -type f -print0 | xargs -0 -e grep -nH -e
[...]
> > Can such behavior be got just configuring .emacs?
>
> It's customisable in 'Grep Find Command' (in the group 'grep').

Thanks Phil, it works for me.


However, following the IDE idea, maybe it could be good emacs adding 
such "prune directory" automatically depending on if the user ask for 
find-grep on a CVS, SVN or other repository type:

That is to say, automatic selection of the prune part of the find-grep 
command:

    -path '*/CVS' -prune
    -path '*/.svn' -prune
    -path '*/.git' -prune
    ...

That to emulate the find-grep result and behavior of IDEs as eclipse, etc.




  reply	other threads:[~2008-04-27 22:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-27 20:36 IDE features: M-x find-grep Davi Leal
2008-04-27 21:12 ` Phil Jackson
2008-04-27 22:10   ` Davi Leal [this message]
2008-04-27 21:48 ` Kim F. Storm
2008-04-27 22:44   ` Davi Leal
2008-05-02 23:46   ` Juri Linkov
2008-05-03  0:27     ` Lennart Borgman (gmail)
2008-05-03 21:01       ` Richard M Stallman
2008-05-03 23:03         ` Juri Linkov
2008-05-04  1:16           ` Re[2]: " Eric M. Ludlam
2008-05-04  2:05             ` Lennart Borgman (gmail)
2008-05-04  2:37               ` Re[2]: " Eric M. Ludlam
2008-05-05 20:21                 ` Lennart Borgman (gmail)
2008-05-04 20:07           ` Richard M Stallman
2008-05-04 23:17             ` Juri Linkov
2008-05-04 23:47               ` Drew Adams
2008-05-05 15:14                 ` Richard M Stallman
2008-05-05 15:14               ` Richard M Stallman
2008-05-04  2:04         ` Lennart Borgman (gmail)

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=200804280010.06357.davi@leals.com \
    --to=davi@leals.com \
    --cc=emacs-devel@gnu.org \
    --cc=phil@shellarchive.co.uk \
    /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).