[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: No such program, egrep error in Customize

From: Drew Adams
Subject: RE: No such program, egrep error in Customize
Date: Wed, 26 Dec 2007 11:53:34 -0800

> It's quite obvious: you don't have an executable `egrep' (egrep.exe,
> egrep.bat, egrep.cmd, etc.) anywhere on your PATH.

Yes, that was obvious from the beginning.

My question was why it was looking for egrep (in order to look for ispell).
There was a completion function defined for widget `color', and it wasn't
being called.

But I found my mistake - the defcustom was not defining the :type as
`color'. See my email to emacs-devel about that.

> > In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
> >  of 2007-06-02 on RELEASE
> If you don't have GNU Grep installed, that's the problem.  If you do
> have it installed, I'm guessing that `egrep' there is a Unix shell
> script, and Windows doesn't know how to run it.  I suggest to write a
> batch file egrep.cmd, with these two lines:
> @echo off
> grep -E %*
> put it somewhere on your PATH, and then M-TAB should work for you.
> Did it?

ispell-grep-command is "egrep", which is fine for me.

However, in emacs -Q, my usual PATH was not used (naturally), so it wasn't
found. Same thing occurs for `grep' or any other program. IOW, no problem
when my .emacs is used, because I set PATH there to include the cygwin
binaries, but emacs -Q has no idea about that (naturally).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]