all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: setup spell checking in windows emacs with emacsW32
Date: Sun, 31 May 2009 11:42:19 -0500	[thread overview]
Message-ID: <u6CdnZa2VqnNLr_XnZ2dnUVZ_vqdnZ2d@sysmatrix.net> (raw)
In-Reply-To: <ed59b475-5b0e-459c-b7a0-71b28aee3392@v4g2000vba.googlegroups.com>

Jason Rumney wrote:
> On May 31, 12:16 pm, "B. T. Raven" <ni...@nihilo.net> wrote:
> 
>> Lennart's Emacs is patched native w32 build I think. You might need
>> aspell from here:
>>
>> http://www.winkde.org/pub/kde/ports/win32/repository/aspell/
>>
>> I don't know whether you also need w32 kde or not or even what that
>> might mean.
> 
> You don't need KDE to use aspell. If you want to be sure that there
> are no KDE dependencies, you can also download aspell from http://aspell.net/win32/

Thanks, Jason. I did download that one first (1.19 meg 
Aspell-0-50-3-3-Setup.exe) but then found the other 0.60 version (aspell 
binary only). Can I install the 0.50 and then copy the newer file(s) on 
top of them? All my GnuWin32 tools are in a flat directory C:\gnu and 
this is included in my PATH, but after winnt/system32. Name collisions 
like sort, ftp, etc. will try to run the MS versions first.

> 
>> but most of the paths in this file refer to glunix directory structure
> 
> If aspell.exe is in your PATH, Emacs will find it. But on Windows, it
> is conventional for installers to not put executables in the PATH, or
> even to set PATH to include the directory they install to.
> Unfortunately many installers for ports of GNU tools also follow this
> convention, even though GNU tools are designed to collaborate
> together, rather than be used as a monolithic application, so it may
> be necessary to customize ispell-program to the full path of
> aspell.exe.

So is this on the right track then:

(defcustom ispell-program-name
   (or "C:/gnu/aspell"
       "ispell")
;; anyway (or "this" "that") returns "this" without error in scratch
;; but the function in context wouldn't work in general if aspell 
weren't there.
;; maybe this is a better guess:

(or (locate-file "c:/gnu/aspell" exec-path exec-suffixes 'file-executable-p)
       "ispell")

"Program invoked by \\[ispell-word] and \\[ispell-region] commands."
   :type 'string
   :group 'ispell)


  reply	other threads:[~2009-05-31 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-30 14:48 setup spell checking in windows emacs with emacsW32 Xah Lee
2009-05-31  4:16 ` B. T. Raven
2009-05-31  7:11   ` Jason Rumney
2009-05-31 16:42     ` B. T. Raven [this message]
2009-06-01  0:09       ` Jason Rumney
2009-06-01  4:51 ` Xah Lee

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=u6CdnZa2VqnNLr_XnZ2dnUVZ_vqdnZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --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.