From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olaf Newsgroups: gmane.emacs.help Subject: Re: emacs Win32 and (hun)spell path configuration Date: Wed, 19 Aug 2009 12:46:09 +0200 Organization: University of Magdeburg, Germany Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250860639 23367 80.91.229.12 (21 Aug 2009 13:17:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 13:17:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 15:17:12 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 1MeTzT-00022B-8e for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 15:17:11 +0200 Original-Received: from localhost ([127.0.0.1]:58839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeTzS-0007cD-8E for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 09:17:10 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.cs.uni-magdeburg.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 95 Original-NNTP-Posting-Host: imat46.mb.uni-magdeburg.de Original-X-Trace: fuerst.cs.uni-magdeburg.de 1250678770 1473 141.44.146.46 (19 Aug 2009 10:46:10 GMT) Original-X-Complaints-To: abuse@cs.uni-magdeburg.de Original-NNTP-Posting-Date: Wed, 19 Aug 2009 10:46:10 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: Original-Xref: news.stanford.edu gnu.emacs.help:172098 X-Mailman-Approved-At: Fri, 21 Aug 2009 09:06:54 -0400 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:67337 Archived-At: Olaf schrieb: > Hi, > > I've installed the emacs win32 patched package from > http://www.ourcomments.org/Emacs/EmacsW32.html and hunspell-1.2.8-win32 > binaries from sourceforge. > > Following some threads on inet I added to .emacs file several versions > for 'ispell-program-name', none of these works: > > ;;http://groups.google.com/group/comp.emacs/browse_thread/thread/1daa8c36fdae1a70 > ;(setq-default ispell-program-name "hunspell") > ;(setq-default ispell-program-name "C:\\Program Files > (x86)\\hunspell-1.2.8-win32\\hunspell.exe") > (setq-default ispell-program-name (quote ("C:/Program Files > (x86)/hunspell-1.2.8-win32/hunspell.exe"))) > > ;(defcustom ispell-program-name > ; (or "C:\\Program Files (x86)\\hunspell-1.2.8-win32" > ; "hunspell") > ; (or (locate-file "C:/Program Files (x86)/hunspell-1.2.8-win32/" > exec-path exec-suffixes 'file-executable-p) > ; "hunspell") > ; (or ("C:\\Program Files (x86)\\hunspell-1.2.8-win32\\hunspell.exe" > 'file-executable-p) > ; "hunspell") > ; "Program invoked by \\[ispell-word] and \\[ispell-region] commands." > ; :type 'string > ; :group 'ispell) > > hunspell (and probably aspell/ispell too) is found only if it is in > windows Path environment variable which I dont' wont to set (I know the > path!) > > With the above I've get: > ispell-check-version: Wrong type argument: stringp, ("C:/Program Files > (x86)/hunspell-1.2.8-win32/hunspell.exe") > > Anyway, the problems goes further: > > ;; http://www.emacswiki.org/emacs/InteractiveSpell > (require 'rw-language-and-country-codes) > (require 'rw-ispell) > (require 'rw-hunspell) > (setq ispell-dictionary "de_DE_frami") > ;; The following is set via custom > (custom-set-variables > '(rw-hunspell-default-dictionary "de_DE_frami") > '(rw-hunspell-dicpath-list (quote ("C:\\Program Files > (x86)\\hunspell-1.2.8-win32"))) > '(rw-hunspell-make-dictionary-menu t) > '(rw-hunspell-use-rw-ispell t) > ) Well, this works: setq-default ispell-program-name "C:/Program Files (x86)/hunspell-1.2.8-win32/hunspell.exe") all other versions don't. > Even with emacs in Path the spell doesn't find the dictionaries (from > http://wiki.services.openoffice.org/wiki/Dictionaries). On > 'ispell-buffer' I get: > > Applying style hooks... done > Starting new Ispell process [de_DE_frami] ... > Enabling Flyspell mode gave an error > Toggling LaTeX-math-mode off; better pass an explicit argument. > Starting new Ispell process [de_DE_frami] ... > Enabling Flyspell mode gave an error > Applying style hooks... done > Starting new Ispell process [de_DE_frami] ... > ispell-init-process: Can't open affix or dictionary files. > @(#) International Ispell Version 3.2.06 (but really Hunspell 1.2.8) It seems to be a Problem of the path to the dictionaries, from console: C:\Program Files (x86)\hunspell-1.2.8-win32>.\hunspell.exe -d de_DE_frami Hunspell 1.2.8 * C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d de_DE_frami Can't open affix or dictionary files. C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d hunspell-1.2.8-win32\de_DE_frami.aff Can't open affix or dictionary files. C:\Program Files (x86)>hunspell-1.2.8-win32\hunspell.exe -d hunspell-1.2.8-win32\de_DE_frami Hunspell 1.2.8 Thanks, Olaf