From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Flyspell error Date: Wed, 05 Aug 2009 09:07:27 +0200 Organization: Freie Universitaet Berlin Message-ID: <877hxi91sg.wl%anselm.helbig+news2009@googlemail.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 X-Trace: ger.gmane.org 1249458053 2788 80.91.229.12 (5 Aug 2009 07:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 07:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 09:40:46 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 1MYb71-0004An-4r for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 09:40:39 +0200 Original-Received: from localhost ([127.0.0.1]:39850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYb70-0006m9-8y for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 03:40:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-X-Trace: news.uni-berlin.de q6XGXMBpLoDOLQg5KFvv+gVbUuHcU9fvKSHlyq32+udzwrnV2j74nS1QXV Cancel-Lock: sha1:pAlFjV2MiKkzSnu/tFYpgKuqO7A= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com Original-Xref: news.stanford.edu gnu.emacs.help:171586 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:66765 Archived-At: Hi! I don't have that much windows experience, but I'll do my best. 8-) > 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:\Program 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 /? Yes, either with / or you need to double the backslash like this: \\, because the Backslash is the quoting character in emacs lisp strings. > do I need to replace ; with :? and if so, what > about the : after the C? No, I think that would be wrong. > this setenv, does it modify the PATH in my OS? if > so, do I need to be logged in with admin account? > and if I do modify it, does it effect my other > programs in my windows XP? You don't need admin rights to change environment variables. It only has an effect on programs you start from within emacs. > I read the setenv and getenv but could not figure > out the above. > why setenv PATH when there is setq exec-path? `setenv' sets the environment variable. Whenever emacs uses the OS' shell to start a program, the shell will see the value of PATH you set in Emacs. However, Emacs can also start a program without using the shell, and to this end it has exec-path. `exec-path' gets set to the list of paths in your PATH environment variable when emacs starts. Setting PATH in your .emacs is too late, unfortunately. So to have everything in one place, I'd rather not touch PATH or exec-path in .emacs, but rather set the system's PATH correctly in the first place. This fixes the issue not only for Emacs but for all other programs as well. You shouldn't need admin rights to do this as this doesn't affect other users. HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com