[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Emacs + W32 + Cygwin Integration
From: |
Stephen Leake |
Subject: |
Re: [h-e-w] Emacs + W32 + Cygwin Integration |
Date: |
Thu, 08 Nov 2007 05:54:16 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) |
Will <address@hidden> writes:
> Hi,
>
> if i use GNU Emacs(W32 package)
> GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 2007-04-24 on
> LENNART-69DE564 (patched)
> and Cygwin (don't know version, installed this summer)
> the first time I call M-x cygwin-shell
> I get a *Warnings* buffer saying
> 'Warning (w32shell): When using 'cygwin' program 'patch' can't be found'
> and when I use the cygwin shell with
> Cygwin /cygdrive/c > find --help
> I get the error
> > FIND: Parameter format not correct
This is the Windows find program, not Cygwin find.
> After exiting and restarting the shell everything works fine.
> Similar problems occur with other commands like 'grep'. There are no
> problems when I use the Cygwin shell standalone (without Emacs).
>
> Can you help?
You need to set your path properly in Emacs, to include the Cygwin bin
directory.
I don't use the W32 package, so I don't know if it is supposed to find
the Cygwin path for you.
I set my path like this:
(setq exec-path
(list
(expand-file-name "~/bin")
(getenv "INSTALL_BIN")
"c:/Gnu/GNAT-6.0.2/bin"
"c:/altera/71/quartus/bin"
(getenv "MODEL_TECH")
(getenv "EMACS_BIN")
"c:/Projects/gnavi/gnatcom/tools"
; "c:/Gnu/Ghdl-0.25/bin"
"c:/Gnu/monotone-build_mingw"
"c:/Apps/monotone" ; dlls for mtn
"c:/usr/local/bin" ; X11 gtkwave installed here
"c:/apps/bazaar"
"c:/bin" ; cygwin
"c:/usr/X11R6/bin" ; cygwin
"c:/Gnu/maxima-5.9.1/bin"
"c:/texmf/miktex/bin"
"c:/Gnu/apache-ant-1.6.5/bin"
"c:/Windows/system32"))
(setenv "PATH" (mapconcat 'identity exec-path path-separator))
--
-- Stephe