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: Wed, 5 Aug 2009 00:03:34 -0700 (PDT) Organization: http://groups.google.com Message-ID: <966a49f9-8fb2-4755-92ed-18317575bd44@l35g2000pra.googlegroups.com> 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> <74580316-83d3-4fca-910c-f8faa0935195@t11g2000prh.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 1249591702 24463 80.91.229.12 (6 Aug 2009 20:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 20:48:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 22:48:16 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 1MZ9sg-0000tp-VT for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 22:48:11 +0200 Original-Received: from localhost ([127.0.0.1]:40689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ9sg-0001Ng-FB for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 16:48:10 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l35g2000pra.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 66 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249455814 13755 127.0.0.1 (5 Aug 2009 07:03:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Aug 2009 07:03:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l35g2000pra.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:171585 comp.emacs:98520 X-Mailman-Approved-At: Thu, 06 Aug 2009 16:46:45 -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:66871 Archived-At: On Aug 4, 2:29 pm, sam jesse wrote: > I tried to put > (when (string-equal system-type "windows-nt") > (progn > (setenv "PATH" > C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\QuickTime\QTSystem\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\P= ro gram > Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL > Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL > Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Aspell\bin\ > . > . > . > > do I need to replace \ with /? > do I need to replace ; with :? and if so, what about the : after the C? > this setenv, does it modify the PATH in my OS? if so, do I need to be log= ged > in with admin account? and if I do modify it, does it effect my other > programs in my windows XP? > I read the setenv and getenv but could not figure out the above. > why setenv PATH when there is setq exec-path? I wrote a summary of my findings. Please see here: =E2=80=A2 Difference between Emacs's =E2=80=9C(setenv PATH ...)=E2=80=9D an= d =E2=80=9C(setq exec- path ...)=E2=80=9D http://xahlee.org/emacs/emacs_env_var_paths.html most your q are answered there. here's your other ones: > do I need to replace \ with /? > do I need to replace ; with :? > and if so, what about the : after the C? Since my shell in emacs invokes the unix shell by cygwin bash, thus i need to use unix conventions. In your case, stick with the Windows convention. > this setenv, does it modify the PATH in my OS? No. It only effect how emacs sees the system's env var within emacs's shells. > why setenv PATH when there is setq exec-path? see the link above. I gave a fair bit of explanation on why there are two. Oh, you need to escape the back quote in your string, because backslash in emacs is a escaping mechanism in string. So, do like this: (setenv "PATH" "C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem" ) Xah =E2=88=91 http://xahlee.org/ =E2=98=84