From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sam jesse Newsgroups: gmane.emacs.help Subject: Re: Flyspell error Date: Thu, 6 Aug 2009 17:48:32 +1000 Message-ID: References: <2537dd5a-5644-416b-be14-38877d92bf5c@g1g2000pra.googlegroups.com> <74580316-83d3-4fca-910c-f8faa0935195@t11g2000prh.googlegroups.com> <877hxi91sg.wl%anselm.helbig+news2009@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364ef507ada52a0470745810 X-Trace: ger.gmane.org 1249545031 1908 80.91.229.12 (6 Aug 2009 07:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 07:50:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: anselm.helbig+news2009@googlemail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 09:50:21 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 1MYxii-0001AA-DX for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 09:49:05 +0200 Original-Received: from localhost ([127.0.0.1]:33873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYxih-0000Q0-Iv for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 03:49:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYxiJ-0000P3-Hp for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:48:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYxiF-0000KE-K3 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:48:39 -0400 Original-Received: from [199.232.76.173] (port=46139 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYxiF-0000Js-5k for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:48:35 -0400 Original-Received: from mail-qy0-f183.google.com ([209.85.221.183]:54272) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYxiE-0006hI-Hk for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:48:34 -0400 Original-Received: by qyk13 with SMTP id 13so690872qyk.14 for ; Thu, 06 Aug 2009 00:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=d5BAh08CPgscizbTIyQHk7sIX/DRWJUA06HwphdSMlo=; b=mdmhMaHGmvctPwa9uTmadwTewWdO7DulRsvr+5Zhaav1hf+QiycspBhYciBvSqy7om sZEaNFOJ7l67AIahiuNmfssjQL1BxxBUzqkB18OlOA4i0VXgEsE+QCO4zQcvORdKwQD6 ZvmagG4Jyt3azrXMLr9pep3TdtvM9SHwx933s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HmXF22HuuA70fULfeNZz1jTiq95dMhpM3TjVBfapY90OZb7ymnsdVe7H85wJ9nHIBd jrZb+Qr1UNFmGEUAAru96mJCVNUuJvYc7PtDseo+B9sH8y6y+Fv1ACPde6BYoaJuH+1b fjCcDBavjD0jBgpBk+ahqzN4xZiY8xH7unTlU= Original-Received: by 10.229.97.144 with SMTP id l16mr2870094qcn.26.1249544913134; Thu, 06 Aug 2009 00:48:33 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66836 Archived-At: --0016364ef507ada52a0470745810 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit any idea how to install an en word list to window xp for my aspell to work? On Thu, Aug 6, 2009 at 3:46 AM, sam jesse wrote: > 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 > > 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 >> > > --0016364ef507ada52a0470745810 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable any idea how to install an en word list to window xp for my aspell to work?=

On Thu, Aug 6, 2009 at 3:46 AM, sam jess= e <revrvr@gmail.co= m> wrote:
OK

I made = the code simple to cover my need:
**************************************= *******8

(when (string-equal system-type "windows-nt")
=A0(progn
=A0=A0 (setenv "PATH" "C:/Program Files/Aspell/bin/&q= uot;)
=A0=A0 (setq exec-path '("C:/Program Files/Aspell/bin") )
= =A0)
)
***************************************************

but= on M-$ I get

Debugger entered--Lisp error: (error "Error: No w= ord lists can be found for the language \"en_US\".")
=A0 signal(error ("Error: No word lists can be found for the language = \"en_US\"."))
=A0 error("%s" "Error: No wo= rd lists can be found for the language \"en_US\".")
=A0 i= spell-init-process()
=A0 ispell-buffer-local-words()
=A0 ispell-accept-buffer-local-defs()=A0 ispell-word(nil nil nil)
=A0 call-interactively(ispell-word)




On We= d, Aug 5, 2009 at 5:07 PM, Anselm Helbig <anselm.hel= big+news2009@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")
> =A0 (progn
> =A0=A0=A0=A0 (setenv "PATH"=A0 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 o= nly
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 O= S'
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<= br> do this as this doesn't affect other users.

HTH,

Anselm


--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com


--0016364ef507ada52a0470745810--