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 03:46:27 +1000 Message-ID: References: <844648ac-0b6c-44b0-bfee-ac5f147ce0f9@u38g2000pro.googlegroups.com> <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=0016364eed74304b0304706895cd X-Trace: ger.gmane.org 1249494485 26192 80.91.229.12 (5 Aug 2009 17:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 17:48:05 +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 Wed Aug 05 19:47:57 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 1MYkai-0004gZ-Ee for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 19:47:57 +0200 Original-Received: from localhost ([127.0.0.1]:52394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYkah-0004q0-Qd for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2009 13:47:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYkZM-0004KD-JN for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 13:46:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYkZK-0004JK-PE for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 13:46:31 -0400 Original-Received: from [199.232.76.173] (port=58478 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYkZK-0004J0-G4 for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 13:46:30 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.150]:56015) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYkZK-0003x8-07 for help-gnu-emacs@gnu.org; Wed, 05 Aug 2009 13:46:30 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 5so165013qwf.24 for ; Wed, 05 Aug 2009 10:46:28 -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=nmePKTLwAsFnohrUD9JmijHgDnoDDoXKzHlXeIR2BcA=; b=SS+68lFjZb31YoLz5e3EsTzj04xx5pH7VuOS3Fqv34azNbEF9qV3D2qi6h6izlAd+r vrsh4KZ9LADnf0DQIW+t3Mvf1EBhF/iGjVPCyaZnYAZKizpJh6tZj2Wqkgk6JXv7SxvG Qh7vTqwgK3wYVPsTb3wLubaKOHryGmZ/WibT0= 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=LIh9jFXSfTNKHScOG0Uxbd/jD/1VMuNqF+0knH+sKowK/nBo+k8GOWp3cjYoM6xcVU A4/zfy6ZOVeElVS/5T1eL260fmJMjIQTUU+z9h6u1/WAB85ZYpN1bBjQiAbHmEirtEwp KXU+wxYQHCT7BxjfN9Nz97BW67Tz9Q8MKFBtE= Original-Received: by 10.229.99.146 with SMTP id u18mr2632258qcn.97.1249494388721; Wed, 05 Aug 2009 10:46:28 -0700 (PDT) In-Reply-To: <877hxi91sg.wl%anselm.helbig+news2009@googlemail.com> 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:66804 Archived-At: --0016364eed74304b0304706895cd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > --0016364eed74304b0304706895cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/")
=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 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&quo= t;)
> =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.he= lbig+news2009@googlemail.com

--0016364eed74304b0304706895cd--