At 05:51 PM 8/8/2001 -0400, Don Coleman wrote: 

>
> The solution to get this to work was to add c:\cygwin\bin to my system path. 
> I was under the impression that cygwin was optional.  I don't run bash
> through emacs so I had no reason to add it to the system path.
>
> Is cygwin required for Win2000/Emacs 20.7.1?  JDE 2.2.7.1, 2.2.8beta4 and
> 2.2.8beta5 all do not compile or build until I add cygwin/bin to the path. 
> Everything else seems to work OK. 


Hi Don,

I'm not having any problems running compilations on Win 2000 SP2, using the
native shell. 

I use the following functions to set up my environment for the various shells I
use. You might want to try the one for cmdproxy to see if it makes a
difference.

- Paul

(defun set-shell-bash()
  (interactive)
  (setq shell-file-name "bash")
  (setq explicit-shell-file-name "bash")
  (if (not running-xemacsp)
      (setenv "SHELL" explicit-shell-file-name))
  (setq explicit-sh-args '("-login" "-i"))
  (setq shell-command-switch "-c")
  (setq w32-quote-process-args ?\")
  (setq win32-quote-process-args ?\")
  ; use unix looking '/' when completing directory names
  (add-hook 'shell-mode-hook
            '(lambda () 
               ;; I don't want to see the startup message.
               (setq inhibit-startup-message t)
               (setq comint-completion-addsuffix '("/" . " ")))
            t))

(defun set-shell-zsh()
  (interactive)
  (setq binary-process-input t)
  (setq shell-file-name "cmdproxy")
  (setq explicit-shell-file-name "zsh")
  (setenv "SHELL" explicit-shell-file-name)
  (setq explicit-sh-args '("-login" "-i"))
  (setenv "TERM" "emacs"))

(defun set-shell-cmdproxy()
  (interactive)
  (setq shell-file-name "cmdproxy")
  (setq explicit-shell-file-name "cmdproxy")
  (setenv "SHELL" explicit-shell-file-name)
  (setq w32-quote-process-args t)
  (setq shell-command-switch "/c"))


(if (eq system-type 'windows-nt)
    (progn
      (setq w32-pass-lwindow-to-system nil)
      (setq w32-lwindow-modifier 'hyper)
      (set-shell-bash)
      (setq archive-zip-use-pkzip nil)
      (setq comint-process-echoes nil)
      (if (not running-xemacsp)
          (if (> emacs-major-version 19)
              (setq w32-enable-italics t
                w32-swap-mouse-buttons t)
            (setq win32-enable-italics t
                  win32-swap-mouse-buttons t)))))

Reply via email to