unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* IDE features:  M-x find-grep
@ 2008-04-27 20:36 Davi Leal
  2008-04-27 21:12 ` Phil Jackson
  2008-04-27 21:48 ` Kim F. Storm
  0 siblings, 2 replies; 19+ messages in thread
From: Davi Leal @ 2008-04-27 20:36 UTC (permalink / raw)
  To: emacs-devel

"find-grep" lists the matches too under the CVS, .svn, .git, ... directories.

Other IDEs avoid to list matches on repository specific files. They only list 
matches in source code files.


find-grep could detect it is going to process a CVS, SVN or Git repository and 
so prune such directories:  -path '*/.svn' -prune

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 

 [2] find . -path '*/CVS' -prune -o -type f -print |  xargs -e grep -I -n -e
 [3] find . -path '*/.svn' -prune -o -type f -print |  xargs -e grep -I -n -e

Can such behavior be got just configuring .emacs?


--
gnuherds.org   The democratic FS job site.




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-05-05 20:21 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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)

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).