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: Sat, 14 Apr 2012 12:04:46 +0300 Message-ID: <83ty0m1y6p.fsf@gnu.org> References: <83iph547tc.fsf@gnu.org> <83sjg73k5p.fsf@gnu.org> <87sjg668q9.fsf@dod.no> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334394434 5196 80.91.229.3 (14 Apr 2012 09:07:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2012 09:07:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 11:07: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 1SIywr-0003RI-5N for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 11:07:13 +0200 Original-Received: from localhost ([::1]:57953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIywq-0005EQ-3l for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Apr 2012 05:07:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIywk-0005Dt-GH for help-gnu-emacs@gnu.org; Sat, 14 Apr 2012 05:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIywh-0007Ki-4g for help-gnu-emacs@gnu.org; Sat, 14 Apr 2012 05:07:06 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIywg-0007KC-SB for help-gnu-emacs@gnu.org; Sat, 14 Apr 2012 05:07:03 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M2G00900OSFUS00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 14 Apr 2012 12:06:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2G0090LPB6NE60@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 14 Apr 2012 12:06:43 +0300 (IDT) In-reply-to: <87sjg668q9.fsf@dod.no> 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:84464 Archived-At: > From: Steinar Bang > Date: Sat, 14 Apr 2012 10:03:26 +0200 > > >>>>> Eli Zaretskii : > > > 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. > > The cmd.exe on my development box have their own utilities with the same > names and different argument, and I don't want to confuse other > utilities in my development environment (which I don't control myself). > Things might stop building because I want rgrep in Gnus. There's more than one way of cutting this cake. You could create a special batch file that modifies PATH before it runs Emacs. You can then make the desktop shortcut which runs Emacs run that batch file instead. Or you could invoke the batch file manually from a command shell before running Emacs from that shell. You can even have a separate shortcut for starting a special-purpose cmd.exe window, which starts by running that batch file (via the "cmd /k foo.bat" feature). I think one of these methods could fit your workflow without adversely affecting those other utilities.