all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sam jesse <revrvr@gmail.com>
To: Xah Lee <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Flyspell error
Date: Tue, 4 Aug 2009 14:44:33 +1000	[thread overview]
Message-ID: <cc0a0f5c0908032144yc36a416i7cd0bf6b117996bf@mail.gmail.com> (raw)
In-Reply-To: <2537dd5a-5644-416b-be14-38877d92bf5c@g1g2000pra.googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 3828 bytes --]

Thanks a lot for write this.
I followed through, the problem I am having is that the echo %PATH% output
is not the same in the cmd.exe vs. the emacs shell.

here is the modified code in my .emacs.

***********************************************************

(when (string-equal system-type "windows-nt")
 (progn
   (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin")
(setq exec-path
'(
"C:/Windows/system32/"
"C:/Windows/"
"C:/Windows/System32/Wbem/"
"C:/Windows/system32/WindowsPowerShell/v1.0/"
"C:/Program Files/Aspell/bin/"
)
 )
   )
 )

***********************************************************
I have a feeling there is something not write with my modification above.
Aspell is installed under "C:/Program Files/

cmd.exe > echo %PATH% puts out

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\

emacs shell echo %PATH% puts out

/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/


should I copy the output from the cmd and put it in the code inside my
.emacs?



On Tue, Aug 4, 2009 at 12:17 PM, Xah Lee <xahlee@gmail.com> wrote:

> ok, first make sure the PATH env var in your Windows is setup
> correctly.
>
> some tips here
>
> • Using PowerShell to Manage Environment Variables
>  http://xahlee.org/powershell/environment_variables.html
>
> then, restart your cmd.exe (by just closing it).
> After restart, type
>
> echo %PATH%
>
> e.g. on my machine shows:
>
> C:\Users\xah>echo %PATH%
> C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin
> \Python;c:\Prog
> ram Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files
> (x86)\Quic
> kTime\QTSystem\;C:\Windows\system32\WindowsPowerShell\v1.0\
>
> Once you got this, then type aspell from any dir and see it works.
> You need to get this step fixed.
>
> Once good, launch emacs, then in emacs, type Alt+x shell or Alt+x cmd-
> shell (the latter is in emacsW32, not sure if it is in other emacs on
> Windows)
>
> then type
> echo %PATH%
>
> the output should match the same as in your cmd.exe. If not, try the
> set paths elisp code:
>
> (when (string-equal system-type "windows-nt")
>  (progn
>    (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/
> cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/
> System32/Wbem")
>    (setq exec-path
>          '(
>            "C:/Program Files (x86)/Emacs/emacs/bin/"
>            "C:/Windows/system32/"
>            "C:/Windows/"
>            "C:/Windows/System32/Wbem/"
>            "C:/Windows/system32/WindowsPowerShell/v1.0/"
>            "C:/cygwin/bin/"
>            )
>          )
>    )
>  )
>
> mod the path for your machine and put it in your emacs init file.
> Select the code, then type Alt+x eval-region.
>
> Now, close your shell buffer. Start it again. Try
> echo %PATH%
>
> again.
> If good, type aspell while in emacs's cmd shell. It should run. If so,
> hten you should be have spell checking in emacs now.
>
> --------
>
> on my machine, i have the above in my init file, but often the env var
> PATH shown in emacs is still different from OS's PATH value. This
> causes running SOME of the unix commands to fail. I haven't
> investigated why yet, but i workaround by eval that code again in
> emacs whenever that happens ....
>
> nor do i know what exactly is the diff between exec-path and setenv
> with PATH...
>
> ... spent way too much time writing this. Good luck.
>
>  Xah
> ∑ http://xahlee.org/
>
> ☄
>

[-- Attachment #2: Type: text/html, Size: 4777 bytes --]

  reply	other threads:[~2009-08-04  4:44 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 [this message]
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
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=cc0a0f5c0908032144yc36a416i7cd0bf6b117996bf@mail.gmail.com \
    --to=revrvr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xahlee@gmail.com \
    /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.