From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: winterTTr Newsgroups: gmane.emacs.help Subject: Re: Is it possible to run rgrep in emacs on Win32? Date: Mon, 16 Apr 2012 22:47:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: <24339857.294.1334641652599.JavaMail.geo-discussion-forums@pbvs6> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334642116 18950 80.91.229.3 (17 Apr 2012 05:55:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2012 05:55:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 07:55:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SK1Nh-0003Kp-AX for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 07:55:13 +0200 Original-Received: from localhost ([::1]:58198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SK1Ng-00028J-Pc for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Apr 2012 01:55:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 207.46.92.16 Original-X-Trace: posting.google.com 1334642007 32164 127.0.0.1 (17 Apr 2012 05:53:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 17 Apr 2012 05:53:27 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=207.46.92.16; posting-account=ZJVSBAoAAAAeAKNW65po3ttK3aNk48Wf User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:192068 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84485 Archived-At: On Thursday, April 12, 2012 5:21:41 PM UTC+8, Steinar Bang wrote: > Platform: emacs 23.2.1, > GnuWin32 FindUtils 4.2.20-2 > GnuWin32 Grep-2.5.4 >=20 > Does anyone know of a way to make the emacs rgrep command work on > windows? >=20 > I'm trying to run `M-x rgrep RET' on a windows emacs. I have installed > find and grep from GnuWin32 ( http://gnuwin32.sourceforge.net/ ) and put > them early in the PATH. >=20 > When I try to run rgrep it exits with no match, and in the *grep* I see > the following error message: > C:\ProgramFiles\GnuWin32\bin\find: invalid expression; I was expecting t= o find a ')' somewhere but did not see one. >=20 > The command line is: > C:\ProgramFiles\GnuWin32\bin\find . "(" -path "*/SCCS" -o -path "*/RCS" -= o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -p= ath "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -pat= h "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -name "*~" -o = -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map" -o -name "= *.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name "*.ln" -o = -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv" -o -name "= *.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -name "*.glo" = -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -nam= e "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name "*.= x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o -name "*.f= sl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -name "*.p64fsl= " -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -name "*.la" = -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.aux" -o -name= "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name "*.tp" -o = -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" -o -name "*= .pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" "= )" -prune -o -type f "(" -iname "*.csproj" ")" -print0 | xargs -0 -e grep = -i -nH -e "searchterm" >=20 > Parantheses seems to be balanced...? I haven't installed xargs, I > think... unless that's part of FindUtils...? I suggest to not use the xargs style. Currently, I almost cannot find a goo= d "find.exe" and "xrags.exe" to work well together. What I currently used is, using the binary folder comes from msysgit, which= should be the find.exe and grep.exe from msys sub system. At the same time, do not use xargs style for rgrep. (require 'grep) (grep-apply-setting 'grep-find-use-xargs 'exec) use 'exec style, which you can get more information from grep-find-use-xarg= s documentation. The currently problem is, this kind of combination is very slow if you use = it to find deep directory tree. However, it at least can use without any pr= oblem.