From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19229: ispell on Windows Date: Thu, 21 May 2015 19:23:03 +0300 Message-ID: <83r3q96gt4.fsf@gnu.org> References: <831tib6omo.fsf@gnu.org> <83zj4y649d.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432225465 26253 80.91.229.3 (21 May 2015 16:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 16:24:25 +0000 (UTC) Cc: 19229@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 21 18:24:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YvTGU-0002Na-8x for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 May 2015 18:24:10 +0200 Original-Received: from localhost ([::1]:58553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvTGT-0002Sa-Hq for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 May 2015 12:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvTGQ-0002SS-Kt for bug-gnu-emacs@gnu.org; Thu, 21 May 2015 12:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvTGM-0005m6-Hh for bug-gnu-emacs@gnu.org; Thu, 21 May 2015 12:24:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvTGM-0005lv-By for bug-gnu-emacs@gnu.org; Thu, 21 May 2015 12:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YvTGM-0001pU-1b for bug-gnu-emacs@gnu.org; Thu, 21 May 2015 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 May 2015 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19229-submit@debbugs.gnu.org id=B19229.14322253976970 (code B ref 19229); Thu, 21 May 2015 16:24:01 +0000 Original-Received: (at 19229) by debbugs.gnu.org; 21 May 2015 16:23:17 +0000 Original-Received: from localhost ([127.0.0.1]:52319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvTFc-0001oL-ED for submit@debbugs.gnu.org; Thu, 21 May 2015 12:23:17 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:56867) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvTFZ-0001o5-79 for 19229@debbugs.gnu.org; Thu, 21 May 2015 12:23:14 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NOP00J00JNFL300@mtaout29.012.net.il> for 19229@debbugs.gnu.org; Thu, 21 May 2015 19:22:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOP00DYSK57SV60@mtaout29.012.net.il>; Thu, 21 May 2015 19:22:19 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102999 Archived-At: > Date: Thu, 21 May 2015 09:16:00 +0100 > From: Alan Third > Cc: 19229@debbugs.gnu.org > > >> > Instead, I suggest to copy en_GB.* dictionary files that Hunspell uses > >> > to corresponding ENG.* files. > >> > >> Doesn't work in OS X, but I'll give it a go in Windows tomorrow. > > This works in windows! Once this is done I can then use > ispell-change-dictionary to change the dictionary to anything I want. > Presumably, then, the problem I'm seeing is that ispell+hunspell falls > over if the dictionary initially set by emacs doesn't exist. Could be, but see below: using LANG is a fallback. > Is there a way to force ispell+hunspell to use a different dictionary > from the start other than changing the LANG variable? There are several ways of doing that. First, you can customize the variable ispell-dictionary to name the dictionary (without the .aff or .dic extensions, just the stem of the basename, as in "en_GB"). You can set this in your ~/.emacs. This will cause ispell.el to invoke Hunspell with the appropriate -d command-line option. Alternatively, you can set the environment variable DICTIONARY to name the dictionary, as in "set DICTIONARY=en_GB". This environment variable is documented in the Hunspell man page. If neither -d is used nor DICTIONARY variable is found in the environment, Hunspell checks LC_ALL, LC_MESSAGES, and LANG variables, in that order. LANG is already set by Emacs when it starts; you could theoretically use one of the other two, but I don't recommend that, again because they have specific meaning for locale-sensitive APIs, and so other programs might react to them in ways you won't like.