[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flyspell error
From: |
Anselm Helbig |
Subject: |
Re: Flyspell error |
Date: |
Wed, 05 Aug 2009 09:07:27 +0200 |
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
- Re: Flyspell error, (continued)
- Message not available
- Re: Flyspell error, Xah Lee, 2009/08/04
- Re: Flyspell error, sam jesse, 2009/08/05
- setevn PATH vs exec-path [was Re: Flyspell error], Xah Lee, 2009/08/05
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Lennart Borgman, 2009/08/05
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Eli Zaretskii, 2009/08/05
- RE: setevn PATH vs exec-path [was Re: Flyspell error], Drew Adams, 2009/08/05
- Message not available
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Xah Lee, 2009/08/06
- Message not available
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Xah Lee, 2009/08/06
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Eli Zaretskii, 2009/08/07
- Message not available
- Re: setevn PATH vs exec-path [was Re: Flyspell error], Xah Lee, 2009/08/07
- Message not available
- Re: Flyspell error,
Anselm Helbig <=
- Re: Flyspell error, sam jesse, 2009/08/05
- Re: Flyspell error, sam jesse, 2009/08/06
- Message not available
- Re: Flyspell error, Xah Lee, 2009/08/06
- Re: Flyspell error, Lennart Borgman, 2009/08/02