From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Is it possible to run rgrep in emacs on Win32? Date: Thu, 12 Apr 2012 12:07:25 +0200 Message-ID: <8762d51cwy.fsf@gmail.com> References: <83iph547tc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334225277 4544 80.91.229.3 (12 Apr 2012 10:07:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 10:07:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 12:07:57 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 1SIGwW-0007Z1-Rw for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 12:07:56 +0200 Original-Received: from localhost ([::1]:42731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIGwW-0004sC-1h for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 06:07:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIGwK-0004rK-RB for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 06:07:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIGwD-00076B-PG for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 06:07:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIGwD-00075i-IL for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 06:07:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SIGwA-0007Mv-Qj for help-gnu-emacs@gnu.org; Thu, 12 Apr 2012 12:07:34 +0200 Original-Received: from lbe83-2-78-243-104-167.fbx.proxad.net ([78.243.104.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 12:07:34 +0200 Original-Received: from thierry.volpiatto by lbe83-2-78-243-104-167.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 12:07:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lbe83-2-78-243-104-167.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) Cancel-Lock: sha1:bIr5jzTxl/bsEFNF+/bKJ50vkWQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:84435 Archived-At: Eli Zaretskii writes: >> From: Steinar Bang >> Date: Thu, 12 Apr 2012 11:21:41 +0200 >> >> Platform: emacs 23.2.1, >> GnuWin32 FindUtils 4.2.20-2 >> GnuWin32 Grep-2.5.4 > > What version of Windows is that? > >> Does anyone know of a way to make the emacs rgrep command work on >> windows? > > First, try Emacs 23.3 or later, there were some changes made there to > fix problems with very long command lines, perhaps you are hitting > that limit. If that doesn't help, maybe advice below will. > > "M-x rgrep" works for me on Windows XP, but I use Fiindutils that I > built myself, as the GnuWin32 provided port is broken (in particular, > xargs is affected). You can find my port here: > > http://sourceforge.net/projects/ezwinports/files/ > > However, lately someone told me that my build doesn't work well on > Windows Vista and later, because Microsoft changed the way quoted > wildcards are processed by the startup code that globs them: now > wildcards are globbed even if they are quoted. If you are using such > a new version of Windows, the only solution I know of is to downgrade > to an even older version 4.1 of Findutils from here: > > http://unxutils.sourceforge.net/ > > I think someone told me that this port does work on newer Windows > versions. > > HTH > > I suggest you use https://github.com/emacs-helm/helm which work out of the box with recursive grep and doesn't need find and xargs, only Gnuwin32 grep >=2.5.4. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997