From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Is it possible to run rgrep in emacs on Win32? Date: Fri, 13 Apr 2012 15:12:34 +0300 Message-ID: <83sjg73k5p.fsf@gnu.org> References: <83iph547tc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334319366 23943 80.91.229.3 (13 Apr 2012 12:16:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2012 12:16:06 +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 14:16:03 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 1SIfPz-00052w-Kv for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2012 14:15:59 +0200 Original-Received: from localhost ([::1]:49392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIfPv-0003We-L0 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Apr 2012 08:15:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIfPm-0003Vb-2d for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 08:15:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIfPj-0003n8-W2 for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 08:15:45 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIfPj-0003n3-Ny for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 08:15:43 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M2F001002Q9KB00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 15:14:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2F000CX3C9GZT0@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 13 Apr 2012 15:14:34 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:84450 Archived-At: > 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.)