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: Fri, 22 May 2015 20:55:52 +0100 Message-ID: References: <831tib6omo.fsf@gnu.org> <83zj4y649d.fsf@gnu.org> <83r3q96gt4.fsf@gnu.org> <83fv6p5cix.fsf@gnu.org> <834mn44dtc.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 1432324581 31399 80.91.229.3 (22 May 2015 19:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 19:56:21 +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 Fri May 22 21:56:11 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 1Yvt3C-0007Ll-EC for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 21:56:10 +0200 Original-Received: from localhost ([::1]:35651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvt3B-0003tm-Ij for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 15:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvt38-0003td-1H for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 15:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvt35-0001Oh-By for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 15:56:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvt35-0001Ns-8J for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 15:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvt34-0003Jg-Gr for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 May 2015 19:56:02 +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.143232456112742 (code B ref 19229); Fri, 22 May 2015 19:56:02 +0000 Original-Received: (at 19229) by debbugs.gnu.org; 22 May 2015 19:56:01 +0000 Original-Received: from localhost ([127.0.0.1]:53230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvt33-0003JQ-12 for submit@debbugs.gnu.org; Fri, 22 May 2015 15:56:01 -0400 Original-Received: from mail-vn0-f49.google.com ([209.85.216.49]:36532) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvt30-0003J4-Ie for 19229@debbugs.gnu.org; Fri, 22 May 2015 15:55:59 -0400 Original-Received: by vnbg190 with SMTP id g190so2018927vnb.3 for <19229@debbugs.gnu.org>; Fri, 22 May 2015 12:55:52 -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=z3ZfjvS0NlpGdB4ya/hNCdOD6AbpmPRP5MT005e3ddU=; b=p6gKQyp5J7/6LHtKmr9dj3+VT9JHKdPU9Fkq0r1DzrhdZC1b016bU5XBMpKeCFaXmu DUtWoZYGWy5T3MBIbKQ9sWTPdAEhR4TvzhG7AmPdS5raCwe7EE7PpWE9xKeg4BTIgHd1 x7aeg6AZYBaYFRFmUix+uXJfQwSTivlQjOR5tj9l3aluevoKlcu5aCjANZ1uFQOX3JX4 nEZE8fiH/eowVjVgT2DSxbKxgT4WfadUAFX+hI1NhE9CW9NKebNKaVATgt5R6AQB51uF jxsBMq0aSFFCcvTAZCXvoJKbNDXZPA9TJIOwhs9cybMtjpc+1y5XORPXfqonUDCnycW8 Fflw== X-Received: by 10.52.179.73 with SMTP id de9mr8637537vdc.28.1432324552861; Fri, 22 May 2015 12:55:52 -0700 (PDT) Original-Received: by 10.52.253.7 with HTTP; Fri, 22 May 2015 12:55:52 -0700 (PDT) In-Reply-To: <834mn44dtc.fsf@gnu.org> X-Google-Sender-Auth: oa4-Su3UeW79E1AbsrwLZJQpgZw 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:103065 Archived-At: On 22 May 2015 at 20:22, Eli Zaretskii wrote: >> Date: Fri, 22 May 2015 19:57:17 +0100 >> From: Alan Third >> Cc: 19229@debbugs.gnu.org >> >> What confuses this on OS X is that when you run hunspell from the >> command line LANG *IS* set and so it works, but from within emacs (run >> from the GUI) LANG *ISN'T* set so it fails. > > Ah, so this is somehow related to the shell environment not being > propagated to Emacs. IOW, an OS X specific issue that has nothing to > do with ispell.el or Hunspell. I'm sure there's a way to have these > defined in Emacs, I just cannot help you with that, as I don't know > anything about OS X setup. No, I wouldn't expect you to. It seems to be something of a known problem as Apple removed the ability to set global environment variables a few versions ago. Sorry for confusing matters with this. >> On Windows from within emacs: >> >> SEARCH PATH: >> .;;C:\Hunspell\;c:/users/thirda\.openoffice.org\3\user\wordbook;c:\Users\thirda\local\bin\..\share\hunspell;C:\Program >> files\OpenOffice.org 2.4\share\dict\ooo\;C:\Program >> files\OpenOffice.org 2.3\share\dict\ooo\;C:\Program >> files\OpenOffice.org 2.2\share\dict\ooo\;C:\Program >> files\OpenOffice.org 2.1\share\dict\ooo\;C:\Program >> files\OpenOffice.org 2.0\share\dict\ooo\ >> AVAILABLE DICTIONARIES (path is not mandatory for -d option): >> c:\Users\thirda\local\bin\..\share\hunspell\default >> c:\Users\thirda\local\bin\..\share\hunspell\en_GB >> c:\Users\thirda\local\bin\..\share\hunspell\en_US >> Can't open affix or dictionary files for dictionary named "ENG". >> >> Creating an "ENG" dictionary fixes this. > > See, you don't have the "default" dictionary. Look again, I do. Emacs has set LANG to "ENG" so hunspell is ignoring "default". And, again, copying en_GB to ENG solves it. I can deal with this. >> And I've just worked out where I need to put a default dictionary to >> get it to work: /usr/share/myspell. > > On what OS? On Windows it should be in share/hunspell/. Sorry, on OS X. I feel that the way ispell handles a misconfigured hunspell is, at the moment, not very helpful. I can provide a patch that I believe makes it fail more gracefully, but I'm getting the feeling it's behaviour that's not wanted. Shall we call it quits? Thanks and apologies for any frustration caused. -- Alan Third