[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 (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

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
         (expand-file-name "~/bin")
         (getenv "INSTALL_BIN")
         (getenv "MODEL_TECH")
         (getenv "EMACS_BIN")
;         "c:/Gnu/Ghdl-0.25/bin"
         "c:/Apps/monotone" ; dlls for mtn
         "c:/usr/local/bin" ; X11 gtkwave installed here
         "c:/bin" ; cygwin
         "c:/usr/X11R6/bin" ; cygwin
  (setenv "PATH" (mapconcat 'identity  exec-path  path-separator))

-- Stephe

reply via email to

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