From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evgeniy Dolzhenko Newsgroups: gmane.emacs.help Subject: Re: Is it possible to run rgrep in emacs on Win32? Date: Fri, 13 Apr 2012 17:02:32 +0400 Message-ID: <4F8823E8.60804@gmail.com> References: <83iph547tc.fsf@gnu.org> <83sjg73k5p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334333887 15304 80.91.229.3 (13 Apr 2012 16:18:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2012 16:18:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 13 18:18:06 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 1SIjCI-00053N-LJ for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2012 18:18:06 +0200 Original-Received: from localhost ([::1]:33632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIjCH-0005gW-I9 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2012 12:18:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIg9N-00087f-2D for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 09:02:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIg9F-0003b4-HF for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 09:02:52 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:63550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIg9F-0003Zm-7Y for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 09:02:45 -0400 Original-Received: by lbao2 with SMTP id o2so2681252lba.0 for ; Fri, 13 Apr 2012 06:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=3mXcW8dc7yfFGwn2ja3UEYAUU6w99NKlkTLJ4tDp/L4=; b=d1CQxggi0ikK9DV6h4W+TbRDLrlVOH+6byrHCEuKPXbG6/7zVtYKQ2HmrektJjpdkF 6k24QTebQEyZFWZB+InSeaPusUhILT3AgiA9ml8t3w4sDTFeFV4c2XabW+AkPr8VU1qX wjPZmoeBNwGWQ7rLhuLpz8x9vReHFq5Idzz+HwFad0J3Rz8Kt3eYpRQNK05DrwQqITtP OuEtO1cmj0w1Hsh5UfcSRecVD7j+MgG4d9KP8UyhI1unm8i7wIbQmPT6oCGdaa38nBey ZQCOby8bkF4f0kad8F1bCpuy0slijTY8py97wGNKubYkapxAk00amCMbpVwSTiERTkSn 9k1Q== Original-Received: by 10.152.102.228 with SMTP id fr4mr1393177lab.23.1334322162017; Fri, 13 Apr 2012 06:02:42 -0700 (PDT) Original-Received: from [192.168.1.4] ([109.172.66.204]) by mx.google.com with ESMTPS id f4sm2196954lbk.15.2012.04.13.06.02.40 (version=SSLv3 cipher=OTHER); Fri, 13 Apr 2012 06:02:40 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <83sjg73k5p.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 X-Mailman-Approved-At: Fri, 13 Apr 2012 12:18:01 -0400 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:84455 Archived-At: Since my comment about this setup being dog slow went unnoticed I'd like to reiterate find+xargs+grep are really slow on Windows on just moderately large projects, so I'm looking for a solution to this? Is it switching to ack? Maybe somebody will post an example config for recent Emacs/ack versions? Cheers, Ev On 4/13/2012 4:12 PM, Eli Zaretskii wrote: >> From: Steinar Bang >> Date: Fri, 13 Apr 2012 13:34:09 +0200 >> >> So in summary: >> - Use emacs 23.4 >> - Install FindUtils and grep from GnuWin32 http://gnuwin32.sourceforge.net/ >> - Set variables in .emacs to whereever you installed the GnuWin32 >> binaries: >> ;; Make rgrep find the GnuWin32 executables it needs >> (setq find-program "C:\\ProgramFiles\\GnuWin32\\bin\\find") >> (setq xargs-program "C:\\ProgramFiles\\GnuWin32\\bin\\xargs") >> (setq grep-program "C:\\ProgramFiles\\GnuWin32\\bin\\grep") > > You will be much better off, including with other ports of GNU/Unix > software, if you just put them all on PATH. I see no good reason for > keeping them in a directory that is not on PATH. Not every program > called by Emacs has a user option that allows you to spell out its > full absolute file name. > > (FWIW, I have a single `bin' directory into which I put _all_ the > programs and DLLs that do not come with Windows out of the box, and > that directory is very near the beginning of PATH. I have yet to see > a single use case where this arrangement failed me, be it in Emacs or > elsewhere. So this is what I recommend to others, unless there are > _very_ good reasons not to use this setup.) >