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: Tue, 4 Aug 2009 11:57:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <66ade717-927b-4304-bf4b-104d0848cc5c@u16g2000pru.googlegroups.com> <844648ac-0b6c-44b0-bfee-ac5f147ce0f9@u38g2000pro.googlegroups.com> <2537dd5a-5644-416b-be14-38877d92bf5c@g1g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249418404 13115 80.91.229.12 (4 Aug 2009 20:40:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 20:40:04 +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 22:39:58 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 1MYQnc-0005bZ-Ou for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 22:39:57 +0200 Original-Received: from localhost ([127.0.0.1]:52829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYQnc-0006U5-6U for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 16:39:56 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t11g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249412251 18989 127.0.0.1 (4 Aug 2009 18:57:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Aug 2009 18:57:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t11g2000prh.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:171566 X-Mailman-Approved-At: Tue, 04 Aug 2009 16:37:18 -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:66746 Archived-At: On Aug 4, 10:34 am, suvayu ali wrote: > 2009/8/3 sam jesse : > > > Thanks a lot for write this. > > I followed through, the problem I am having is that the echo %PATH% out= put > > is not the same in the cmd.exe vs. the emacs shell. > > > here is the modified code in my .emacs. > > > *********************************************************** > > > (when (string-equal system-type "windows-nt") > > (progn > > (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin") > > I am an emacs newbie, so take everything I write with a grain of salt. > The path value quoted above looks valid for a *nix system not XP. > > > should I copy the output from the cmd and put it in the code inside my > > .emacs? > > Since you are on XP that would be a reasonable thing to try. Thanks for catching that. i set my PATH in my Windows emacs to unix paths because i'm mostly using cygwin shell inside emacs... i still need to do some study on the various paths to have a some sort of more universal setup, so that i should be able to invoke cygwin or Windows commands in all of emacs interactive shells: shell, cmd-shell, powershell... as of now, am not sure that's even desirable... i guess i needs to understand more about how these shells relates to each other technically outside of emacs first... the path separator issue of / vs \ and their automatic conversion in different shells has also been a pain... in all shells (cygwin bash, cmd.exe, PowerShell) they all have automatic conversion as you use the shell, but when you write scripts or set paths, you can't arbitrarily use / or \ (even if properly quoted in string), the rule for the omission of drive letter is also a complex issue, and cygwin has some rather esoteric mechanisms to map drives (e.g. in cygwin bash, =93/cygdrive/c=94 maps to =93C:\=94) ... Xah