From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Flyspell error Date: Mon, 3 Aug 2009 19:17:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2537dd5a-5644-416b-be14-38877d92bf5c@g1g2000pra.googlegroups.com> References: <83tz0souue.fsf@gnu.org> <66ade717-927b-4304-bf4b-104d0848cc5c@u16g2000pru.googlegroups.com> <844648ac-0b6c-44b0-bfee-ac5f147ce0f9@u38g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249357475 31447 80.91.229.12 (4 Aug 2009 03:44:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 03:44:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 05:44:28 2009 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 1MYAwt-0002N4-Pb for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 05:44:28 +0200 Original-Received: from localhost ([127.0.0.1]:47857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYAwt-0007w2-1k for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Aug 2009 23:44:27 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g1g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 80 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249352256 5843 127.0.0.1 (4 Aug 2009 02:17:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Aug 2009 02:17:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g1g2000pra.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171542 comp.emacs:98515 X-Mailman-Approved-At: Mon, 03 Aug 2009 23:43:57 -0400 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:66723 Archived-At: ok, first make sure the PATH env var in your Windows is setup correctly. some tips here =E2=80=A2 Using PowerShell to Manage Environment Variables http://xahlee.org/powershell/environment_variables.html then, restart your cmd.exe (by just closing it). After restart, type echo %PATH% e.g. on my machine shows: C:\Users\xah>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin \Python;c:\Prog ram Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Quic kTime\QTSystem\;C:\Windows\system32\WindowsPowerShell\v1.0\ Once you got this, then type aspell from any dir and see it works. You need to get this step fixed. Once good, launch emacs, then in emacs, type Alt+x shell or Alt+x cmd- shell (the latter is in emacsW32, not sure if it is in other emacs on Windows) then type echo %PATH% the output should match the same as in your cmd.exe. If not, try the set paths elisp code: (when (string-equal system-type "windows-nt") (progn (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/ cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/ System32/Wbem") (setq exec-path '( "C:/Program Files (x86)/Emacs/emacs/bin/" "C:/Windows/system32/" "C:/Windows/" "C:/Windows/System32/Wbem/" "C:/Windows/system32/WindowsPowerShell/v1.0/" "C:/cygwin/bin/" ) ) ) ) mod the path for your machine and put it in your emacs init file. Select the code, then type Alt+x eval-region. Now, close your shell buffer. Start it again. Try echo %PATH% again. If good, type aspell while in emacs's cmd shell. It should run. If so, hten you should be have spell checking in emacs now. -------- on my machine, i have the above in my init file, but often the env var PATH shown in emacs is still different from OS's PATH value. This causes running SOME of the unix commands to fail. I haven't investigated why yet, but i workaround by eval that code again in emacs whenever that happens .... nor do i know what exactly is the diff between exec-path and setenv with PATH... ... spent way too much time writing this. Good luck. Xah =E2=88=91 http://xahlee.org/ =E2=98=84