[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flyspell error

From: sam jesse
Subject: Re: Flyspell error
Date: Wed, 5 Aug 2009 07:29:23 +1000

I tried to put
(when (string-equal system-type "windows-nt")
     (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 /?
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 logged 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?

On Wed, Aug 5, 2009 at 5:02 AM, Xah Lee <address@hidden> wrote:
On Aug 4, 11:10 am, Eli Zaretskii <address@hidden> wrote:
> > Date: Tue, 4 Aug 2009 14:44:33 +1000
> > From: sam jesse <address@hidden>
> > Cc: address@hidden
> > (when (string-equal system-type "windows-nt")
> >  (progn
> >    (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin")
> Huh? why do you set PATH to a Unixy value when you are on a Windows
> machine?

my bad... am using cygwin.

> You should instead set PATH to the same value you set exec-path (only
> not as a Lisp list):

so the setenv PATH is equivalent to just setq exec-path? this is great
to know.


> > (setq exec-path
> > '(
> > "C:/Windows/system32/"
> > "C:/Windows/"
> > "C:/Windows/System32/Wbem/"
> > "C:/Windows/system32/WindowsPowerShell/v1.0/"
> > "C:/Program Files/Aspell/bin/"
> > emacs shell echo %PATH% puts out
> > /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/
> Of course! because that's what you set it to, above.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]