From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#19229: ispell on Windows Date: Wed, 20 May 2015 21:34:51 +0100 Message-ID: References: <831tib6omo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1432154120 17844 80.91.229.3 (20 May 2015 20:35:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 20:35:20 +0000 (UTC) Cc: 19229@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 20 22:35: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 1YvAhs-0008Pp-DZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 May 2015 22:35:12 +0200 Original-Received: from localhost ([::1]:53955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvAhr-00014s-V0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 May 2015 16:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvAho-00012Z-7J for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 16:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvAhk-0004bd-6F for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 16:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvAhj-0004bA-Ry for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 16:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YvAhj-0005R0-7x for bug-gnu-emacs@gnu.org; Wed, 20 May 2015 16:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 May 2015 20:35:03 +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.143215410020878 (code B ref 19229); Wed, 20 May 2015 20:35:03 +0000 Original-Received: (at 19229) by debbugs.gnu.org; 20 May 2015 20:35:00 +0000 Original-Received: from localhost ([127.0.0.1]:51529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvAhg-0005Qg-21 for submit@debbugs.gnu.org; Wed, 20 May 2015 16:35:00 -0400 Original-Received: from mail-vn0-f45.google.com ([209.85.216.45]:38594) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvAhd-0005QS-9P for 19229@debbugs.gnu.org; Wed, 20 May 2015 16:34:57 -0400 Original-Received: by vnbf190 with SMTP id f190so4522950vnb.5 for <19229@debbugs.gnu.org>; Wed, 20 May 2015 13:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=/0en5Uka0visoZME0MLjlgDQO+nkqV3kTCenDUbK/W4=; b=FeCgXZWAOqC9NufoqhkjuOb/S7xuy7f6YCIhNNzspQWb5hJLdQ6HtHb8ukFatAWl96 zTcQcF2axKpBBUrUi71g5D/rlUujKFgI17lUqz3UHmxaRRIf3UrUY5BckyWE6ovWhMMJ zh8xJPxteiHKsfWGkJD9NikWfdW0ZvXq1M+v6GU5SLbjemw6bsE+UDsDocES/H0I3Dqz dNwsnNLbZMDCQ/MxnkHPQ4AAga2bUhzO3fF0GEltlCSadXgbE6FKWoslQs2/k1CFFRsK yBp2/u9AGtU0jfOS6ENzXe9uFAdNRNr9bPDV4DF/JVM5U+UFYr+BLyM27KdWWIYOsVE6 AyFg== X-Received: by 10.52.136.102 with SMTP id pz6mr35455661vdb.5.1432154091448; Wed, 20 May 2015 13:34:51 -0700 (PDT) Original-Received: by 10.52.253.7 with HTTP; Wed, 20 May 2015 13:34:51 -0700 (PDT) In-Reply-To: <831tib6omo.fsf@gnu.org> X-Google-Sender-Auth: 0O3SzCoI5X2dxrrRg5jvYBjtQ-s 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:102989 Archived-At: On 20 May 2015 at 20:21, Eli Zaretskii wrote: > I advise against that "solution", because this value of LANG might > confuse other Windows programs if they are invoked by Emacs, and even > Emacs itself, where its features depend on the locale. Seems fair. > 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. Annoyingly hunspell on it's own is perfectly capable of choosing the right dictionary, and if I use aspell instead of hunspell I just need to set: (setq ispell-dictionary "en_GB") in my init.el and it works without any further issues. On OS X at least, I'll have to wait until tomorrow to try aspell in Windows. If I can get it working, my memory is that it's awkward which is the reason why I was trying hunspell. Well, that and the rumour that hunspell can handle UTF-8 apostrophes when aspell can't. > Alternatively, say something like this in your ~/.emacs: > > (ispell-change-dictionary "en_GB" t) > > which re-invokes Hunspell with the en_GB dictionary without messing > with your LANG variable. Unfortunately this doesn't work, I get our old friend: ispell-phaf: No matching entry for nil. And if I run it a second time I get: (error "Undefined dictionary: en_GB") I don't really understand why because at this stage ispell-hunspell-dict-paths-alist is set to (on OS X, but I found the same thing on Windows): (("british" "/Library/Spelling/en_GB.aff") ("en_GB" "/Library/Spelling/en_GB.aff")) so clearly the hunspell auto-configuration stuff is working, but something somewhere isn't joining up. I've given up on spell checking in emacs several times in the past and this is the closest I've ever got to getting it working across all the platforms I'm using. -- Alan Third