From owner-ntemacs-users@trout  Wed May  7 11:42:02 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" " 7" "May" "1997" "13:54:25" "-0400" "Peter Breton" "pbreton.i-kinetics.com@i-kinetics.com" "<199705071754.NAA26913@volte.i-kinetics.com>" "21" "Re: M-x grep (recursive?)" "^From:" nil nil "5" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id LAA24852 for <voelker@june.cs.washington.edu>; Wed, 7 May 1997 11:33:09 -0700
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id LAA42081 for <voelker@joker.cs.washington.edu>; Wed, 7 May 1997 11:32:59 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id KAA21334 for <ntemacs-users@trout.cs.washington.edu>; Wed, 7 May 1997 10:57:11 -0700 (PDT)
Received: from ns.i-kinetics.com (ns.i-kinetics.com [205.181.32.10]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id KAA20887 for <ntemacs-users@cs.washington.edu>; Wed, 7 May 1997 10:57:04 -0700
Received: (from mail@localhost) by ns.i-kinetics.com (8.8.5/8.6.9) id NAA05810; Wed, 7 May 1997 13:38:11 -0400 (EDT)
Received: from dirac.i-kinetics.com(192.31.81.157) by ns.i-kinetics.com via smap (V2.0) 	id xma005803; Wed, 7 May 97 13:38:00 -0400
Received: from volte.i-kinetics.com by i-kinetics.com (4.1/SMI-4.1/UUNET) 	id AA13525; Wed, 7 May 97 13:54:00 EDT
Received: by volte.i-kinetics.com (SMI-8.6/SMI-SVR4) 	id NAA26913; Wed, 7 May 1997 13:54:25 -0400
Message-Id: <199705071754.NAA26913@volte.i-kinetics.com>
In-Reply-To: <3370B3A4.6F0BE895@diffusion.com>
References: <3370B3A4.6F0BE895@diffusion.com>
Reply-To: pbreton@i-kinetics.com
Mime-Version: 1.0 (generated by tm-edit 7.102)
Content-Type: text/plain; charset=US-ASCII
From: Peter Breton <pbreton.i-kinetics.com@i-kinetics.com>
To: Shahram Javey <sjavey@diffusion.com>
Cc: emacs <ntemacs-users@cs.washington.edu>
Subject: Re: M-x grep (recursive?)
Date: Wed, 7 May 1997 13:54:25 -0400


 Shahram> Hi, I want to be able to use "M-x grep" to search for a
 Shahram> string in a given directory and all of its subdirectories. I
 Shahram> still want the result in a *grep* buffer so that I could use
 Shahram> "C-x `" to iterate through the files that conatin the
 Shahram> matching string. How do I do that?

One way to do that would be to use the "findstr" command, which is 
built-in (at least to NT 4.0, don't know about 95). You can either make grep 
use this directly:

  (setq grep-command "findstr /n /s ")

or provide a wrapper function:

 (defun findstr ()
    "Run a grep using the Windows findstr command."
    (interactive)
    (let ((grep-command "findstr /n /s "))
        (call-interactively 'grep)))

		Peter

From owner-ntemacs-users@trout  Wed May  7 12:53:34 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" " 7" "May" "1997" "15:20:48" "-0400" "David Biesack" "sasdjb@unx.sas.com" nil "17" "> M-x grep (recursive?)" "^From:" nil nil "5" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id MAA03551 for <voelker@june.cs.washington.edu>; Wed, 7 May 1997 12:53:33 -0700
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id MAA42159 for <voelker@joker.cs.washington.edu>; Wed, 7 May 1997 12:53:23 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id MAA24668 for <ntemacs-users@trout.cs.washington.edu>; Wed, 7 May 1997 12:21:28 -0700 (PDT)
Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id MAA00798 for <ntemacs-users@cs.washington.edu>; Wed, 7 May 1997 12:21:27 -0700
Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/01-23-95) 	id AA17073; Wed, 7 May 1997 15:21:24 -0400
Received: from lambda.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) 	id AA10576; Wed, 7 May 1997 15:20:49 -0400
Received: by lambda.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93) 	id AA17298; Wed, 7 May 1997 15:20:48 -0400
Message-Id: <199705071920.AA17298@lambda.unx.sas.com>
In-Reply-To: <199705071754.NAA26913@volte.i-kinetics.com> (message from Peter Breton on Wed, 7 May 1997 13:54:25 -0400)
From: David Biesack <sasdjb@unx.sas.com>
To: ntemacs-users@cs.washington.edu
Subject: > M-x grep (recursive?)
Date: Wed, 7 May 1997 15:20:48 -0400

> Date: Wed, 7 May 1997 13:54:25 -0400
> From: Peter Breton <pbreton.i-kinetics.com@i-kinetics.com>
> 
>  Shahram> Hi, I want to be able to use "M-x grep" to search for a
>  Shahram> string in a given directory and all of its subdirectories. I
> 
> One way to do that would be to use the "findstr" command, which is 
> built-in (at least to NT 4.0, don't know about 95). You can either make grep 
> use this directly:

One note of caution: findstr will downcase your filenames whereas
find/grep will not (unless you have poor implementations of
find/grep). This causes problems if you don't have
win32-downcase-file-names set to t and you've already visited the file
with mixed case file names.



