From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Graham Smith" Newsgroups: gmane.emacs.help Subject: Re: Does grep work in Windows Date: Wed, 24 Jan 2007 08:20:35 +0000 Message-ID: <2c75873c0701240020s33701a8erfc179d7dfae214e6@mail.gmail.com> References: <45b67f7f$0$30318$9b4e6d93@newsspool1.arcor-online.net> <2c75873c0701231427n49241f5dndb257f08f58de94@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1462434819==" X-Trace: sea.gmane.org 1169626875 30991 80.91.229.12 (24 Jan 2007 08:21:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Jan 2007 08:21:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 24 09:21:08 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H9dNT-0002gj-Jq for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 09:21:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9dNT-00061g-2p for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 03:21:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9dN2-0005rg-UG for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 03:20:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9dN1-0005qq-HL for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 03:20:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9dN1-0005qa-0f for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 03:20:39 -0500 Original-Received: from [64.233.182.188] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H9dN0-00039a-6O for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 03:20:38 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so526425nfe for ; Wed, 24 Jan 2007 00:20:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HUVVsVIJrT4BLa8PhzFvEKHWCJtz9y+p4XGjqmHV9EWVrdcserrkErfwan9i2fc9lT2MLnMH5E5cOpOCtD3CDH+MUZt7ySffHkkxbIg5VQXB/snpTb558eaDwXSUnEHb2LWaF74yVVyPnScatjGoKJJG8ocsPWIZ09JaqiMzLQY= Original-Received: by 10.49.90.4 with SMTP id s4mr2505837nfl.1169626835186; Wed, 24 Jan 2007 00:20:35 -0800 (PST) Original-Received: by 10.49.65.11 with HTTP; Wed, 24 Jan 2007 00:20:35 -0800 (PST) In-Reply-To: X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40579 Archived-At: --===============1462434819== Content-Type: multipart/alternative; boundary="----=_Part_810_20850922.1169626835141" ------=_Part_810_20850922.1169626835141 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Eli, Thanks for your help. I did restart Emacs, indeed I re-booted the PC. I modified the PATH via My Computer|advanced|Environmental variable, and I have re-installed Grep. In the end I gave up and installed Emacsw32, which comes with Grep, and its now working. I would rather have solved the problem but, for now this seems the more efficient way of sorting it out. Should I have added anything in the .emacs file? Graham On 24/01/07, Eli Zaretskii wrote: > > > Date: Tue, 23 Jan 2007 22:27:35 +0000 > > From: "Graham Smith" > > > > I have installed Grep from the gnuwin32 web site and "now" added it to > the > > PATH environmental variable. Same error. > > Did you restart Emacs after installing Grep? Emacs won't notice any > changes to PATH while it (Emacs) is running. > > If you did restart Emacs, please make sure that you modified PATH > correctly, i.e. in a way that will be in effect for all programs, > including Emacs. In practice, this means you should modify PATH via > Control Panel, not in the shell window. > > > grep -n -e setq ~/.emacs NUL > > 'grep' is not recognized as an internal or external command, > > operable program or batch file. > > This error message says that the OS cannot find grep.exe. You need to > find out why. Something in the way you installed Grep is not right. > > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > ------=_Part_810_20850922.1169626835141 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Eli,

Thanks for your help.

I did restart Emacs, indeed I re-booted the PC. I modified the PATH via My Computer|advanced|Environmental variable, and I have re-installed Grep.

In the end I gave up and installed Emacsw32, which comes with Grep, and its now working.

I would rather have solved the problem but, for now this seems the more efficient way of sorting it out.

Should I have added anything in the .emacs file?

Graham



On 24/01/07, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Tue, 23 Jan 2007 22:27:35 +0000
> From: "Graham Smith" <myotisone@gmail.com>
>
> I have installed Grep from the gnuwin32 web site and "now" added it to the
> PATH environmental variable. Same error.

Did you restart Emacs after installing Grep?  Emacs won't notice any
changes to PATH while it (Emacs) is running.

If you did restart Emacs, please make sure that you modified PATH
correctly, i.e. in a way that will be in effect for all programs,
including Emacs.  In practice, this means you should modify PATH via
Control Panel, not in the shell window.

> grep -n -e setq ~/.emacs NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.

This error message says that the OS cannot find grep.exe.  You need to
find out why.  Something in the way you installed Grep is not right.


_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

------=_Part_810_20850922.1169626835141-- --===============1462434819== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1462434819==--