From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: Is it possible to run rgrep in emacs on Win32? Date: Mon, 16 Apr 2012 13:26:07 +0000 Message-ID: References: <83iph547tc.fsf@gnu.org> <83sjg73k5p.fsf@gnu.org> <87sjg668q9.fsf@dod.no> <83ty0m1y6p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334582863 6582 80.91.229.3 (16 Apr 2012 13:27:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 13:27:43 +0000 (UTC) To: Eli Zaretskii , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 15:27:42 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 1SJly1-0000kN-1e for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 15:27:41 +0200 Original-Received: from localhost ([::1]:37851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJly0-0007W1-5n for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2012 09:27:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJlxr-0007Vt-Il for help-gnu-emacs@gnu.org; Mon, 16 Apr 2012 09:27:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJlxl-0000Tw-0L for help-gnu-emacs@gnu.org; Mon, 16 Apr 2012 09:27:31 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:32830 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJlxk-0000TX-R8 for help-gnu-emacs@gnu.org; Mon, 16 Apr 2012 09:27:24 -0400 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.1.323.3; Mon, 16 Apr 2012 08:26:08 -0500 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.89]) by USSLMMBX002.net.plm.eds.com ([169.254.1.7]) with mapi id 14.01.0323.003; Mon, 16 Apr 2012 08:26:08 -0500 Thread-Topic: Is it possible to run rgrep in emacs on Win32? Thread-Index: AQHNGIVOm2z6JyioXUWWhLNNeQ3U85aZ+T+wgABkzgCAAxdgMA== In-Reply-To: <83ty0m1y6p.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.224.13] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 134.244.32.85 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:84478 Archived-At: > From: Eli Zaretskii > Sent: Saturday, April 14, 2012 4:05 AM > To: help-gnu-emacs@gnu.org > Subject: Re: Is it possible to run rgrep in emacs on Win32? >=20 > > 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. >=20 > There's more than one way of cutting this cake. >=20 > 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). >=20 > I think one of these methods could fit your workflow without adversely > affecting those other utilities. I suppose my situation is different, but am I the only person who uses the = Windows-native FINDSTR utility? (require 'compile) (setq grep-command "findstr /n ") The syntax is of course completely different, and there are certainly signi= ficant RegExp differences, but it ignores the "NUL" that appears at the end= of the command so basically works and its syntax is similar-enough to grep= 's that I can mostly forget which one I'm using. (I'm a programmer, so gen= erally am searching for a single word such as a function name....) =20 I just add the /S option when I want recursive descent behavior.... Cheers, Mark