From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: setup spell checking in windows emacs with emacsW32 Date: Sun, 31 May 2009 17:09:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <88ce99d4-e907-4224-8267-23c6dd2f5809@a36g2000yqc.googlegroups.com> References: <437c6633-147e-4e12-91de-85767bf72295@k2g2000yql.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243816847 11162 80.91.229.12 (1 Jun 2009 00:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 00:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 01 02:40:44 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 1MAvZx-0002s3-M7 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 02:40:41 +0200 Original-Received: from localhost ([127.0.0.1]:46585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAvZx-00064q-2e for geh-help-gnu-emacs@m.gmane.org; Sun, 31 May 2009 20:40:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!a36g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 60 Original-NNTP-Posting-Host: 61.4.103.130 Original-X-Trace: posting.google.com 1243814978 18130 127.0.0.1 (1 Jun 2009 00:09:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 1 Jun 2009 00:09:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a36g2000yqc.googlegroups.com; posting-host=61.4.103.130; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 rndgate.rnd.clarion.com.my:8080 (squid/2.5.STABLE6) Original-Xref: news.stanford.edu gnu.emacs.help:169619 comp.emacs:98194 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:64850 Archived-At: On Jun 1, 12:42=A0am, "B. T. Raven" wrote: > Jason Rumney wrote: > > On May 31, 12:16 pm, "B. T. Raven" 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 fromhttp://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 ispell-program-name is already defined in ispell.el. You probably want to use setq here. > =A0 =A0(or "C:/gnu/aspell" > =A0 =A0 =A0 =A0"ispell") The above is the same as "C:/gnu/aspell". > (or (locate-file "c:/gnu/aspell" exec-path exec-suffixes 'file-executable= -p) > =A0 =A0 =A0 =A0"ispell") Since you're supplying the full path, you don't really need to locate- file unless you are unsure which of exec-suffixes applies. (file-executable-p "c:/gnu/aspell.exe") Should be enough if you find the behaviour of falling back on "ispell" useful when aspell does not exist in that location.