all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: Eli Zaretskii <eliz@gnu.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Is it possible to run rgrep in emacs on Win32?
Date: Mon, 16 Apr 2012 13:26:07 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1A78D4728E@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <83ty0m1y6p.fsf@gnu.org>

> 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?
> 
> > From: Steinar Bang <sb@dod.no>
> > Date: Sat, 14 Apr 2012 10:03:26 +0200
> >
> > >>>>> Eli Zaretskii <eliz@gnu.org>:
> >
> > > 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.

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 significant 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 generally am searching for a single word such as a function name....)  

I just add the /S option when I want recursive descent behavior....

Cheers,
Mark




  reply	other threads:[~2012-04-16 13:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  9:21 Is it possible to run rgrep in emacs on Win32? Steinar Bang
2012-04-12  8:39 ` Tassilo Horn
2012-04-12  9:29 ` Eli Zaretskii
2012-04-12  9:37   ` Evgeniy Dolzhenko
2012-04-12 10:06   ` Stefan Vollmar
2012-04-12 10:07   ` Thierry Volpiatto
2012-04-12 15:26   ` Steinar Bang
2012-04-12 14:13     ` Eli Zaretskii
2012-04-13 11:34     ` Steinar Bang
2012-04-13 12:12       ` Eli Zaretskii
2012-04-13 13:02         ` Evgeniy Dolzhenko
2012-04-13 17:42           ` Eli Zaretskii
2012-04-14 15:14           ` Stefan Vollmar
2012-04-14  8:03         ` Steinar Bang
2012-04-14  9:04           ` Eli Zaretskii
2012-04-16 13:26             ` Ludwig, Mark [this message]
     [not found] <mailman.1131.1334218896.20052.help-gnu-emacs@gnu.org>
2012-04-17  5:47 ` winterTTr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5672F8AD4C054BAF167C9801500D1A78D4728E@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.