From: sam jesse <revrvr@gmail.com>
To: anselm.helbig+news2009@googlemail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: Flyspell error
Date: Thu, 6 Aug 2009 03:46:27 +1000 [thread overview]
Message-ID: <cc0a0f5c0908051046v4ca7be38h40a5407e6d2cd6fb@mail.gmail.com> (raw)
In-Reply-To: <877hxi91sg.wl%anselm.helbig+news2009@googlemail.com>
[-- Attachment #1: Type: text/plain, Size: 3078 bytes --]
OK
I made the code simple to cover my need:
*********************************************8
(when (string-equal system-type "windows-nt")
(progn
(setenv "PATH" "C:/Program Files/Aspell/bin/")
(setq exec-path '("C:/Program Files/Aspell/bin") )
)
)
***************************************************
but on M-$ I get
Debugger entered--Lisp error: (error "Error: No word lists can be found for
the language \"en_US\".")
signal(error ("Error: No word lists can be found for the language
\"en_US\"."))
error("%s" "Error: No word lists can be found for the language
\"en_US\".")
ispell-init-process()
ispell-buffer-local-words()
ispell-accept-buffer-local-defs()
ispell-word(nil nil nil)
call-interactively(ispell-word)
On Wed, Aug 5, 2009 at 5:07 PM, Anselm Helbig <
anselm.helbig+news2009@googlemail.com<anselm.helbig%2Bnews2009@googlemail.com>
> wrote:
> 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<anselm.helbig%2Bnews2009@googlemail.com>
>
[-- Attachment #2: Type: text/html, Size: 4017 bytes --]
next prev parent reply other threads:[~2009-08-05 17:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 0:06 Flyspell error sam jesse
2009-08-01 7:29 ` Eli Zaretskii
2009-08-01 8:53 ` sam jesse
2009-08-01 10:01 ` Eli Zaretskii
[not found] ` <mailman.3634.1249120899.2239.help-gnu-emacs@gnu.org>
2009-08-01 10:13 ` Richard Riley
[not found] ` <mailman.3635.1249129213.2239.help-gnu-emacs@gnu.org>
2009-08-01 21:58 ` Xah Lee
2009-08-02 7:10 ` sam jesse
[not found] ` <mailman.3687.1249222316.2239.help-gnu-emacs@gnu.org>
2009-08-02 20:02 ` Xah Lee
2009-08-02 20:28 ` Richard Riley
2009-08-03 0:08 ` Xah Lee
2009-08-03 0:10 ` Xah Lee
2009-08-03 20:51 ` sam jesse
2009-08-03 20:54 ` sam jesse
2009-08-03 22:21 ` Xah Lee
2009-08-03 23:12 ` sam jesse
[not found] ` <mailman.3801.1249343719.2239.help-gnu-emacs@gnu.org>
2009-08-04 2:17 ` Xah Lee
2009-08-04 4:44 ` sam jesse
2009-08-04 17:34 ` suvayu ali
2009-08-04 18:10 ` Eli Zaretskii
[not found] ` <mailman.3862.1249407393.2239.help-gnu-emacs@gnu.org>
2009-08-04 18:57 ` Xah Lee
[not found] ` <mailman.3868.1249409494.2239.help-gnu-emacs@gnu.org>
2009-08-04 19:02 ` Xah Lee
2009-08-04 21:29 ` sam jesse
2009-08-04 22:06 ` setevn PATH vs exec-path [was Re: Flyspell error] Xah Lee
2009-08-05 5:52 ` Lennart Borgman
[not found] ` <mailman.3919.1249451575.2239.help-gnu-emacs@gnu.org>
2009-08-05 12:40 ` Xah Lee
2009-08-05 17:14 ` Eli Zaretskii
2009-08-05 17:25 ` Drew Adams
[not found] ` <mailman.3953.1249492495.2239.help-gnu-emacs@gnu.org>
2009-08-05 23:51 ` Xah Lee
2009-08-07 9:30 ` Eli Zaretskii
[not found] ` <mailman.4107.1249637430.2239.help-gnu-emacs@gnu.org>
2009-08-07 11:43 ` Xah Lee
[not found] ` <mailman.3916.1249445924.2239.help-gnu-emacs@gnu.org>
2009-08-05 7:03 ` Flyspell error Xah Lee
2009-08-05 7:07 ` Anselm Helbig
2009-08-05 17:46 ` sam jesse [this message]
2009-08-06 7:48 ` sam jesse
2009-08-02 21:21 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc0a0f5c0908051046v4ca7be38h40a5407e6d2cd6fb@mail.gmail.com \
--to=revrvr@gmail.com \
--cc=anselm.helbig+news2009@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.