From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: coskun Newsgroups: gmane.emacs.help Subject: Re: M-x shell RET on Windows not working Date: Sun, 17 Feb 2008 19:28:51 -0800 (PST) Organization: http://groups.google.com Message-ID: <9d8599a3-aac5-4086-8f2b-a9e944967293@62g2000hsn.googlegroups.com> References: <47b3e566$0$23005$9b4e6d93@newsspool1.arcor-online.net> <63bdb18b-7010-48cb-9ed4-6cec36f46e6f@e30g2000hsa.googlegroups.com> <47b4ac6f$0$4288$9b4e6d93@newsspool3.arcor-online.net> <2398a84d-5228-4152-a9d8-30cb9c57cef4@s8g2000prg.googlegroups.com> <47b537cd$0$2299$9b4e6d93@newsspool4.arcor-online.net> <405e3dc3-34e4-453b-b24e-fae98ae0a9f2@d21g2000prf.googlegroups.com> <47b60097$0$2291$9b4e6d93@newsspool4.arcor-online.net> <61mh06F1vij11U1@mid.individual.net> <80a77d75-9e56-4b8f-8c02-2ce5e3e0056a@c33g2000hsd.googlegroups.com> <16b62274-95a3-4621-b992-8d62c2e07a1e@28g2000hsw.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203306090 27312 80.91.229.12 (18 Feb 2008 03:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 03:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 04:41:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQwt3-0000Dn-Ux for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 04:41:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQwsZ-00056w-D8 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Feb 2008 22:41:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!62g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 87 Original-NNTP-Posting-Host: 71.154.14.46 Original-X-Trace: posting.google.com 1203305332 816 127.0.0.1 (18 Feb 2008 03:28:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 18 Feb 2008 03:28:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 62g2000hsn.googlegroups.com; posting-host=71.154.14.46; posting-account=ce8wugoAAABMMzbn5zbVqvwGXZKpF-yw User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; Tablet PC 2.0; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156256 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51623 Archived-At: On Feb 17, 9:11=A0pm, nullius.fil...@gmail.com wrote: > X-no-archive: yes > On Feb 18, 8:50=A0am, coskun wrote: > > > I wanted to post an update. As I said earlier, cmd.exe at Command > > Prompt works. But cmdproxy.exe does not work. It turns out that Emacs > > calls cmdproxy.exe when I do 'M-xshell' not cmd.exe: > > > shellrun =A0 =A0 =A0*shell* C:/Program Files/Emacs/bin/cmdproxy.exe -i > > > Please let me know if you have any ideas? > > You can change your shell by adding the line > > =A0 (setq shell-file-name "cmd") > > to your dot emacs initialization. But that is not your problem with > running MikTeX thru' Auctex. Your problem is that Auctex expects > to use a different shell called "sh." Emacs is also much happier to > use that shell. > > Here is how to install "sh" > > 1. Pick up a tool that can extract bz2 compressed files. I use one > called 7zip (www.7-zip.org/). When you install 7zip it will magically > set up a file association for bz2. > > 2. Open a command prompt and make a directory > > c:\>mkdir c:\msys > > 3. Go tohttp://www.mingw.org/it points to a download link to > sourceforge with =A0a shitload of packages. You want the one- > > msysCORE-1.0.11-2007.01.19-1.tar.bz2 > > 4. Double click twice on msysCORE-1.0.11-2007.01.19-1.tar.bz2. > First double click with 7zip will decompress the files into a tar > format, > the second double click will decompress the files into a normal > directory structure. Do your normal "Shift click" to select all the > files and directories in the 7zip window and extract them to a C:\msys > > 5. You should now have file tree something like > C:\msys > C:\msys\bin > C:\msys\doc > . > . > C:\msys\msys.bat > > 6. This is where the magic happens. You are about to disconnect > emacs from the windows world to reconnect to unix. You are > going to fuck around with all the environment variables so that Emacs > sees a different operating system to the rest of windows applications. > > Add the following code at the top of your dot emacs. > > You'll have to customize to suit. For example, my MikTeX is at > > c:\Program Files\MikTeX 2.6 > > and so gets that particular magic name. > > My Emacs is installed at c:\bin\emacs.. and etc. > > ;;; _emacs > (setq exec-path '("c:/Progra~1/miktex~1.6/miktex/bin" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "c:/Progra~1/gs/gs8.61/bin" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "c:/bin/emacs/bin" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "c:/msys/bin" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "c:/msys/local/bin" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "c:/Progra~1/Aspell/bin")) > (setenv "PATH" (mapconcat 'identity exec-path path-separator)) > (setq shell-file-name "sh") ;; required for perl > (require 'tex-mik) > > 7. If you have followed all this you should now have opened > up the true power of auctex, and completely disconnected > from the dos world. Many thanks. Best, Coskun