I have been using Console2 on an MS Windows box to compile and would like to use Emacs instead. My settings on Console2 are as follows:
shell="c:/mingw/bin/sh.exe --login -i -c 'cd /c/docume~1/admini~1/desktop/;export PATH=/c/mingw/bin:/c/progra~1/git/bin; exec /bin/sh'" init_dir=""
Q: How can I configure Emacs to use the MinGW stuff from above so that I can run a command such as
(compile "make") in Emacs on a Windows platform?
The following snippet renders an error when trying to compile Emacs from source: "cmdproxy.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
(defun xp-compile () (interactive) (let ((default-directory (w32-short-file-name "c:/Documents and Settings/Administrator/Desktop/emacs")) (compilation-environment "PATH=/c/mingw/bin:/c/progra~1/git/bin")) (compile "make")))