GNU bug report logs - #19229
ispell-phaf: No matching entry for ...

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alexander Shukaev <haroogan@HIDDEN>; dated Sun, 30 Nov 2014 18:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 1 Dec 2014 17:15:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 01 12:15:36 2014
Received: from localhost ([127.0.0.1]:50991 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvUZU-00039t-8w
	for submit <at> debbugs.gnu.org; Mon, 01 Dec 2014 12:15:36 -0500
Received: from mail-lb0-f176.google.com ([209.85.217.176]:64590)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <haroogan@HIDDEN>) id 1XvUZS-00037e-O3
 for 19229 <at> debbugs.gnu.org; Mon, 01 Dec 2014 12:15:35 -0500
Received: by mail-lb0-f176.google.com with SMTP id p9so8857687lbv.21
 for <19229 <at> debbugs.gnu.org>; Mon, 01 Dec 2014 09:15:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=VRzsPLiwSo6PKef7MzGJGG23wXKDNJlySOdSOh4mF+o=;
 b=TMI7MqhJq778Rpm+BfRHfG0pUdMdpJHCqCpWNpgpS3CsJVT/FsEHFhTwyLhiUsmmUt
 iOvcpXc0UtOee+bkxSUZzbGD50kfAfrZSrJNKw7in7YXAFnjOLnxoLHXGxJaxKzkEDX8
 an9+18pHWdwmw8F37843q1EFowNgfCsqEfVnmgb0WMDnh7jswIGni1YpKFw+ecDu3+40
 X6q6k7UXa1fsNxDkJX9fsSKjNxQTdQynpcbQvJvj7Y1QuY0THiwuDcCa3+1eN8qeB3vW
 xTSB65DAx1WfxIhGvVO4rZvgr7p9b74ZjLl/wWoo8hgrjLT2j/J5NQbjNS4SI9TVkBiw
 CNnQ==
MIME-Version: 1.0
X-Received: by 10.112.167.200 with SMTP id zq8mr57880263lbb.61.1417454133936; 
 Mon, 01 Dec 2014 09:15:33 -0800 (PST)
Received: by 10.112.21.136 with HTTP; Mon, 1 Dec 2014 09:15:33 -0800 (PST)
In-Reply-To: <83388z8hje.fsf@HIDDEN>
References: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
 <83mw788k5w.fsf@HIDDEN>
 <CAKu-7Wxf1sDyWsnHOTKJn8_O6zC7ci-LTNpv3ScofdpHNVCKeQ@HIDDEN>
 <83388z8hje.fsf@HIDDEN>
Date: Mon, 1 Dec 2014 18:15:33 +0100
Message-ID: <CAKu-7WwfrFXvkfyXCt8giE36Zg-BZXaPiqEC=zUsqDNdwS4EGw@HIDDEN>
Subject: Re: bug#19229: ispell-phaf: No matching entry for ...
From: Alexander Shukaev <haroogan@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary=001a11c2633a23897e05092ac270
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19229
Cc: 19229 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--001a11c2633a23897e05092ac270
Content-Type: text/plain; charset=UTF-8

Thank you for detailed answer, Eli. I haven't tested it all yet, but I will
report as soon as I do.

Do you still think it's needed?
>

If it will work exactly as you say, then of course not! ;)

Regards,
Alexander

--001a11c2633a23897e05092ac270
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div=
>Thank you for detailed answer, Eli. I haven&#39;t tested it all yet, but I=
 will report as soon as I do.</div><div><br></div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">Do you still think it&#39;s needed?<br>
</blockquote></div><br></div><div class=3D"gmail_extra">If it will work exa=
ctly as you say, then of course not! ;)</div><div class=3D"gmail_extra"><br=
></div><div class=3D"gmail_extra">Regards,</div><div class=3D"gmail_extra">=
Alexander</div></div>

--001a11c2633a23897e05092ac270--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 1 Dec 2014 16:26:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 01 11:26:03 2014
Received: from localhost ([127.0.0.1]:50942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvTnW-0001K0-K9
	for submit <at> debbugs.gnu.org; Mon, 01 Dec 2014 11:26:02 -0500
Received: from mtaout23.012.net.il ([80.179.55.175]:40172)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1XvTnU-0001Ja-1d
 for 19229 <at> debbugs.gnu.org; Mon, 01 Dec 2014 11:26:00 -0500
Received: from conversion-daemon.a-mtaout23.012.net.il by
 a-mtaout23.012.net.il (HyperSendmail v2007.08) id
 <0NFW00A00VYXWA00@HIDDEN> for 19229 <at> debbugs.gnu.org;
 Mon, 01 Dec 2014 18:25:58 +0200 (IST)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NFW00A7IWBAVG30@HIDDEN>;
 Mon, 01 Dec 2014 18:25:58 +0200 (IST)
Date: Mon, 01 Dec 2014 18:26:04 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#19229: A workaround for hunspell
In-reply-to: <20141201.035050.1157775322234029344.chriszheng99@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Chris Zheng <chriszheng99@HIDDEN>
Message-id: <831toj8hgj.fsf@HIDDEN>
References: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
 <20141201.035050.1157775322234029344.chriszheng99@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 19229
Cc: haroogan@HIDDEN, 19229 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Mon, 01 Dec 2014 03:50:50 +0800
> From: Chris Zheng <chriszheng99@HIDDEN>
> Cc: haroogan@HIDDEN
> 
> I think I have wasted more time than you. :(  I have a way to
> workaround this problem.  See the below diff.  I don't know whether
> this affect *nix users, so it just stays in my init files.
> 
> *** a	Mon Dec  1 03:40:31 2014
> --- b	Mon Dec  1 03:40:31 2014
> ***************
> *** 27,33 ****
>   		(error "ispell-fhd: Default dict already defined as %s. Not using %s.\n"
>   		       hunspell-default-dict dict)
>   	      (setq affix-file dict)
> ! 	      (setq hunspell-default-dict (list basename affix-file)))
>   	  (if (and (not (assoc basename ispell-hunspell-dict-paths-alist))
>   		   (file-exists-p affix-file))
>   	      ;; Entry has an associated .aff file and no previous value.
> --- 27,35 ----
>   		(error "ispell-fhd: Default dict already defined as %s. Not using %s.\n"
>   		       hunspell-default-dict dict)
>   	      (setq affix-file dict)
> ! 	      (setq hunspell-default-dict (list basename affix-file))
> ! 	      (add-to-list 'ispell-hunspell-dict-paths-alist
> ! 			   (list basename affix-file)))
>   	  (if (and (not (assoc basename ispell-hunspell-dict-paths-alist))
>   		   (file-exists-p affix-file))
>   	      ;; Entry has an associated .aff file and no previous value.

Please see my comments.  If what I wrote there still doesn't work for
you, please describe the details of the failure.  (Are you also using
the MSYS2 port of Hunspell 1.3.3? if so, please try the ezwinports
port instead.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 1 Dec 2014 16:24:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 01 11:24:21 2014
Received: from localhost ([127.0.0.1]:50938 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvTls-0001HE-HM
	for submit <at> debbugs.gnu.org; Mon, 01 Dec 2014 11:24:21 -0500
Received: from mtaout21.012.net.il ([80.179.55.169]:40257)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1XvTlp-0001H4-FA
 for 19229 <at> debbugs.gnu.org; Mon, 01 Dec 2014 11:24:19 -0500
Received: from conversion-daemon.a-mtaout21.012.net.il by
 a-mtaout21.012.net.il (HyperSendmail v2007.08) id
 <0NFW00A00VYFTJ00@HIDDEN> for 19229 <at> debbugs.gnu.org;
 Mon, 01 Dec 2014 18:24:15 +0200 (IST)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NFW00AVXW8FSS30@HIDDEN>;
 Mon, 01 Dec 2014 18:24:15 +0200 (IST)
Date: Mon, 01 Dec 2014 18:24:21 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#19229: ispell-phaf: No matching entry for ...
In-reply-to: <CAKu-7Wxf1sDyWsnHOTKJn8_O6zC7ci-LTNpv3ScofdpHNVCKeQ@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Alexander Shukaev <haroogan@HIDDEN>
Message-id: <83388z8hje.fsf@HIDDEN>
References: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
 <83mw788k5w.fsf@HIDDEN>
 <CAKu-7Wxf1sDyWsnHOTKJn8_O6zC7ci-LTNpv3ScofdpHNVCKeQ@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 19229
Cc: 19229 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Sun, 30 Nov 2014 22:55:17 +0100
> From: Alexander Shukaev <haroogan@HIDDEN>
> Cc: 19229 <at> debbugs.gnu.org
> 
> Thanks a lot for the tip.
> 
> I don't know what was wrong with MSYS2 version of hunspell, but this one works with the following minimal configuration:
> 
>     (setq ispell-program-name (executable-find "hunspell"))
>     (setq ispell-local-dictionary "en_US")
>     (setq ispell-local-dictionary-alist '(("en_US"
>                                            "[[:alpha:]]"
>                                            "[^[:alpha:]]"
>                                            "[']"
>                                            nil
>                                            nil
>                                            nil
>                                            utf-8)))

I think you don't need most of this, see below.

> Nevertheless, I can still see
> 
>     ispell-phaf: No matching entry for nil

I don't see it on my system.  With "emacs -Q", all I need is to
evaluate

  (setq ispell-program-name (executable-find "hunspell"))

After that, "M-x ispell-buffer RET" works as expected, and I see no
error messages about ispell-phaf in *Messages*.  Does that work for
you?

> So it still tries to call `ispell-parse-hunspell-affix-file' with `nil' for the first time, and only then calls it with "en_US" in my case.

But your above minimal configuration is not how Hunspell should be set
up with Emacs 24.4 and later.  First, it is best to set up the default
dictionary to be for the language you spellcheck the most.  If that's
US English, then just copy en_US.* files to the corresponding
default.* files, and that's it.

If the default dictionary is not what you want, you should only need
this one additional line to switch globally to another one:

  (ispell-change-dictionary "en_US" t)

(Of course, "en_US" can be replaced with any other language.)  With
this one line in addition to setting ispell-program-name I get a
working spelling in US English, and no error messages in "emacs -Q".
Does this work for you?

> Secondly, I think that relying on "hunspell -D" so stubbornly that `ispell-parse-hunspell-affix-file' blocks all further usage of ispell.el with hunspell if `ispell-hunspell-dict-paths-alist' is just dumb.

I don't think so.  The code in ispell.el that queries the speller
about the available dictionaries is IMO a very useful feature because
asking the speller about dictionaries is the most reliable way of
detecting which ones are available and what languages/encodings they
support.  Without that, Emacs must rely on the user to manually set up
ispell-local-dictionary-alist, which is error prone and cumbersome
(e.g., how do you tell which dictionary needs what encoding?).

With the original Ispell program, ispell-local-dictionary-alist was a
must, but modern spellers, like aspell and hunspell, can be queried
about the dictionaries, which makes your ispell-local-dictionary-alist
customization above entirely unnecessary.

>     Not all distributions of hunspell even supply "share/hunspell/*" stuff with them;

Then those distributions are simply broken: Hunspell isn't worth
anything without at least one dictionary.  It's OK to provide
dictionaries in a separate archive, but not having them around at all
is bad news for Windows users who download Hunspell, because finding
these dictionaries and figuring out how to install the various RPMs
you find out there is not for the faint at heart.

>     Some users don't use dictionaries from "share/hunspell/*" because they might get either more updated dictionaries themselves and/or already have customized personal dictionaries.

If the dictionaries are installed in a location different from the
default share/hunspell/ directory, the user should set the DICPATH
environment variable to point to the directories with the
dictionaries, and "hunspell -D" will still report them.  See "man
hunspell" for more details.

> For instance, #2 is exactly what I was planning to do:
>
>       (let ((dictionaries-dir (expand-file-name "dictionaries"
>                                                 user-emacs-directory)))
>         (make-directory dictionaries-dir t)
>         (setq ispell-local-dictionary "en_US")
>         (setq ispell-local-dictionary-alist '((nil
>                                                "[[:alpha:]]"
>                                                "[^[:alpha:]]"
>                                                "[']"
>                                                nil
>                                                ("-d" "en_US"
>                                                 "-p" dictionaries-dir)
>                                                nil
>                                                utf-8)
>                                               ("en_US"
>                                                "[[:alpha:]]"
>                                                "[^[:alpha:]]"
>                                                "[']"
>                                                nil
>                                                ("-d" "en_US"
>                                                 "-p" dictionaries-dir)
>                                                nil
>                                                utf-8)
>                                               ("german"
>                                                "[[:alpha:]]"
>                                                "[^[:alpha:]]"
>                                                "[']"
>                                                t
>                                                ("-d" "de_DE_frami"
>                                                 "-p" dictionaries-dir)
>                                                "~tex"
>                                                utf-8)
>                                               ("russian"
>                                                "[[:alpha:]]"
>                                                "[^[:alpha:]]"
>                                                "[']"
>                                                nil
>                                                ("-d" "ru_RU"
>                                                 "-p" dictionaries-dir)
>                                                nil
>                                                utf-8)))))
>
>
> and in this case I obviously don't care at all whether hunspell has anything in "share/hunspell/*" or not. So why would I be forcefully blocked to use it with some weird error from `ispell-parse-hunspell-affix-file'?

I don't see why you would need such an elaborate manual setup.  (Btw,
the -p switch is not for telling Hunspell where to find the
dictionaries, it's for telling it where are your _personal_
dictionaries.)  You are reinventing the wheel, fighting an uphill
battle against Hunspell and ispell.el while at that, and then complain
that it's hard.  Just set DICPATH in the environment and be done, it's
much simpler.  Play by the rules, and everything should "just work"
(barring bugs).

IOW, ispell.el's handling of Hunspell is based on the assumption that
the user has a working Hunspell installation with dictionaries that
the speller can find without any fancy command-line switches.  I think
this is a sound assumption, and it does work for everyone else.  It
will work for you as well, if you just install and configure Hunspell
properly, see above.

You can still tweak the installation and setup, of course -- this is
Emacs! -- but at least for your particular setup it's unneeded,
AFAICT; the defaults should work just fine.

> How about redesign?

Do you still think it's needed?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 30 Nov 2014 21:55:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 16:55:24 2014
Received: from localhost ([127.0.0.1]:50191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvCSh-0007dg-0B
	for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 16:55:24 -0500
Received: from mail-lb0-f170.google.com ([209.85.217.170]:52380)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <haroogan@HIDDEN>) id 1XvCSc-0007dW-JB
 for 19229 <at> debbugs.gnu.org; Sun, 30 Nov 2014 16:55:19 -0500
Received: by mail-lb0-f170.google.com with SMTP id w7so7744102lbi.15
 for <19229 <at> debbugs.gnu.org>; Sun, 30 Nov 2014 13:55:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=tAxIc85/keND8DYDryFY2NUY63SCa9hldmILkPFdh78=;
 b=Su2+l/kWFr+Df+OZKp3VKxCXkNZjC8OrswmMAGvQLTMVtE4e/p55nz0SLOufjlYgdB
 G5CKubYf8dSVjM0yTjqYkgJzjrt2tpKNl0p3q8LDlsH3oNudKENuqbcf8HHbDJdoagEh
 Bszs9pajeyQcs4+5dQYAB3Kth6naa3PvJbts+9uMSO7U1VOiW47RiM0iB0E69yYWUXER
 JFyTSuV6VeHiWwkEvp6YQHmIjQwRT0dYqLn8CmnGZBk7K/XE/hQ/IyA4YZMWB98R1Zd/
 nvR6XNoV1QkK5rKg6BXgXO2JPq+LwpRgZRViWlkAFmfS9Xy98fb7uh+D2ZwVZCQ9Tqjj
 zXMw==
MIME-Version: 1.0
X-Received: by 10.153.8.137 with SMTP id dk9mr37507688lad.82.1417384517424;
 Sun, 30 Nov 2014 13:55:17 -0800 (PST)
Received: by 10.112.21.136 with HTTP; Sun, 30 Nov 2014 13:55:17 -0800 (PST)
In-Reply-To: <83mw788k5w.fsf@HIDDEN>
References: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
 <83mw788k5w.fsf@HIDDEN>
Date: Sun, 30 Nov 2014 22:55:17 +0100
Message-ID: <CAKu-7Wxf1sDyWsnHOTKJn8_O6zC7ci-LTNpv3ScofdpHNVCKeQ@HIDDEN>
Subject: Re: bug#19229: ispell-phaf: No matching entry for ...
From: Alexander Shukaev <haroogan@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary=001a113474f8abdcb405091a8c70
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19229
Cc: 19229 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--001a113474f8abdcb405091a8c70
Content-Type: text/plain; charset=UTF-8

Thanks a lot for the tip.

I don't know what was wrong with MSYS2 version of hunspell, but this one
works with the following minimal configuration:

(setq ispell-program-name (executable-find "hunspell"))
(setq ispell-local-dictionary "en_US")
(setq ispell-local-dictionary-alist '(("en_US"
                                       "[[:alpha:]]"
                                       "[^[:alpha:]]"
                                       "[']"
                                       nil
                                       nil
                                       nil
                                       utf-8)))


Nevertheless, I can still see

ispell-phaf: No matching entry for nil


So it still tries to call `ispell-parse-hunspell-affix-file' with `nil' for
the first time, and only then calls it with "en_US" in my case.

Secondly, I think that relying on "hunspell -D" so stubbornly that
`ispell-parse-hunspell-affix-file' blocks all further usage of ispell.el
with hunspell if `ispell-hunspell-dict-paths-alist' is just dumb. Here are
a few reasons:

   1. Not all distributions of hunspell even supply "share/hunspell/*"
   stuff with them;
   2. Some users don't use dictionaries from "share/hunspell/*" because
   they might get either more updated dictionaries themselves and/or already
   have customized personal dictionaries.

For instance, #2 is exactly what I was planning to do:

  (let ((dictionaries-dir (expand-file-name "dictionaries"
                                            user-emacs-directory)))
    (make-directory dictionaries-dir t)
    (setq ispell-local-dictionary "en_US")
    (setq ispell-local-dictionary-alist '((nil
                                           "[[:alpha:]]"
                                           "[^[:alpha:]]"
                                           "[']"
                                           nil
                                           ("-d" "en_US"
                                            "-p" dictionaries-dir)
                                           nil
                                           utf-8)
                                          ("en_US"
                                           "[[:alpha:]]"
                                           "[^[:alpha:]]"
                                           "[']"
                                           nil
                                           ("-d" "en_US"
                                            "-p" dictionaries-dir)
                                           nil
                                           utf-8)
                                          ("german"
                                           "[[:alpha:]]"
                                           "[^[:alpha:]]"
                                           "[']"
                                           t
                                           ("-d" "de_DE_frami"
                                            "-p" dictionaries-dir)
                                           "~tex"
                                           utf-8)
                                          ("russian"
                                           "[[:alpha:]]"
                                           "[^[:alpha:]]"
                                           "[']"
                                           nil
                                           ("-d" "ru_RU"
                                            "-p" dictionaries-dir)
                                           nil
                                           utf-8)))))


and in this case I obviously don't care at all whether hunspell has
anything in "share/hunspell/*" or not. So why would I be forcefully blocked
to use it with some weird error from `ispell-parse-hunspell-affix-file'?

How about redesign?

--001a113474f8abdcb405091a8c70
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64

PGRpdiBkaXI9Imx0ciI+PGRpdj5UaGFua3MgYSBsb3QgZm9yIHRoZSB0aXAuPC9kaXY+PGRpdj48
YnI+PC9kaXY+SSBkb24mIzM5O3Qga25vdyB3aGF0IHdhcyB3cm9uZyB3aXRoIE1TWVMyIHZlcnNp
b24gb2YgaHVuc3BlbGwsIGJ1dCB0aGlzIG9uZSB3b3JrcyB3aXRoIHRoZSBmb2xsb3dpbmcgbWlu
aW1hbCBjb25maWd1cmF0aW9uOjxkaXY+PGJyPjwv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nF1b3Q7c2hhcmUvaHVuc3BlbGwvKiZx
dW90OyBvciBub3QuIFNvIHdoeSB3b3VsZCBJIGJlIGZvcmNlZnVsbHkgYmxvY2tlZCB0byB1c2Ug
aXQgd2l0aCBzb21lIHdlaXJkIGVycm9yIGZyb23CoGBpc3BlbGwtcGFyc2UtaHVuc3BlbGwtYWZm
aXgtZmlsZSYjMzk7PzwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SG93IGFib3V0IHJlZGVzaWdu
PzwvZGl2PjwvZm9udD48L2Rpdj48ZGl2Pjxicj48L2Rpdj48L2Rpdj4NCg==
--001a113474f8abdcb405091a8c70--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 30 Nov 2014 21:15:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 16:15:25 2014
Received: from localhost ([127.0.0.1]:50185 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvBq0-0006ed-IH
	for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 16:15:25 -0500
Received: from mtaout26.012.net.il ([80.179.55.182]:38168)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1XvBpx-0006eT-78
 for 19229 <at> debbugs.gnu.org; Sun, 30 Nov 2014 16:15:22 -0500
Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il
 (HyperSendmail v2007.08) id <0NFV00I00EF4SN00@HIDDEN> for
 19229 <at> debbugs.gnu.org; Sun, 30 Nov 2014 23:14:04 +0200 (IST)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NFV00FZCEZG9940@HIDDEN>; Sun, 30 Nov 2014 23:14:04 +0200 (IST)
Date: Sun, 30 Nov 2014 23:15:23 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#19229: ispell-phaf: No matching entry for ...
In-reply-to: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Alexander Shukaev <haroogan@HIDDEN>
Message-id: <83mw788k5w.fsf@HIDDEN>
References: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 19229
Cc: 19229 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Sun, 30 Nov 2014 19:25:45 +0100
> From: Alexander Shukaev <haroogan@HIDDEN>
> 
> Wasted the whole day on trying to make Hunspell work with Emacs on Windows and
> still out of luck.

Works for me out of the box, FWIW.

>     (setq ispell-program-name (executable-find "hunspell"))
>     
>     (setq ispell-dictionary "en_US")
>     
>     
>     (require 'ispell)
> 
> This is the most basic configuration that should definitely work.
> 
>     $ hunspell -D
>     SEARCH PATH:
>     .;C:/Tools/x64/MSYS2/mingw64/bin/;C:/Tools/x64/MSYS2/mingw64/share/hunspell;C:/Tools/x64/MSYS2/mingw64/share/myspell;C:/Tools/x64/MSYS2/mingw64/share/myspell/dicts;%USERPROFILE%\/Application
>     Data/OpenOffice.org
>     2/user/wordbook;C:/Tools/x64/MSYS2/mingw64/share/hunspell;C:/Tools/x64/MSYS2/mingw64/share/myspell;C:/Tools/x64/MSYS2/mingw64/share/myspell/dicts
>    
>     AVAILABLE DICTIONARIES (path is not mandatory for -d option):
      ^^^^^^^^^^^^^^^^^^^^^^
Why is this list empty?

>     LOADED DICTIONARY:
>     C:/Tools/x64/MSYS2/mingw64/share/hunspell/en_US.aff
>     C:/Tools/x64/MSYS2/mingw64/share/hunspell/en_US.dic
>     Hunspell 1.3.3
> 
> I keep getting:
> 
>     ispell-phaf: No matching entry for ...
> 
> and it's no surprise because `ispell-hunspell-dict-paths-alist' is `nil'. Why?

Maybe your Hunspell port is broken?  Can you try this one:

  http://sourceforge.net/projects/ezwinports/files/hunspell-1.3.2-3-w32-bin.zip/download

Here's what I get from -D with that port:

  SEARCH PATH:
  .;;C:\Hunspell\;D:\usr\eli\.openoffice.org\3\user\wordbook;D:\usr\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):
  D:\usr\bin\..\share\hunspell\american
  D:\usr\bin\..\share\hunspell\default
  D:\usr\bin\..\share\hunspell\de_AT
  D:\usr\bin\..\share\hunspell\de_CH
  D:\usr\bin\..\share\hunspell\de_DE
  D:\usr\bin\..\share\hunspell\de_DE_frami
  D:\usr\bin\..\share\hunspell\ENU
  D:\usr\bin\..\share\hunspell\en_GB
  D:\usr\bin\..\share\hunspell\en_MED
  D:\usr\bin\..\share\hunspell\en_US
  D:\usr\bin\..\share\hunspell\he_IL
  D:\usr\bin\..\share\hunspell\russian
  D:\usr\bin\..\share\hunspell\ru_RU
  D:\usr\bin\..\share\hunspell\sv_SE
  LOADED DICTIONARY:
  D:\usr\bin\..\share\hunspell\default.aff
  D:\usr\bin\..\share\hunspell\default.dic
  Hunspell 1.3.2

and my ispell-hunspell-dict-paths-alist is definitely not empty, it is
filled by the dictionaries listed in the AVAILABLE DICTIONARIES
section.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at 19229 <at> debbugs.gnu.org:


Received: (at 19229) by debbugs.gnu.org; 30 Nov 2014 19:51:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 14:51:06 2014
Received: from localhost ([127.0.0.1]:50145 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XvAWP-0003E4-JD
	for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 14:51:05 -0500
Received: from mail-pd0-f178.google.com ([209.85.192.178]:61566)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <chriszheng99@HIDDEN>) id 1XvAWM-0003Dv-M5
 for 19229 <at> debbugs.gnu.org; Sun, 30 Nov 2014 14:51:03 -0500
Received: by mail-pd0-f178.google.com with SMTP id g10so9438019pdj.23
 for <19229 <at> debbugs.gnu.org>; Sun, 30 Nov 2014 11:51:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=date:message-id:subject:from:to:cc:mime-version:content-type
 :content-transfer-encoding;
 bh=9GveMqh9yCX/51q/+95oVT0Z8uMZwZsexbIQ9GurWrg=;
 b=SwjH1NVrq+CIa1kja0euvO2NO+XTP2c69o7LXf9uVstnG2KpmU0gryrVLCFg441dr8
 HJYCCNT73yLA9HrG01plNeCoI69bDuPTsh3YAxeMqZQUAt4ORjzA0gcoN63iCSE1q8kg
 h4rgnIsBdtSlhcpshzk3r99gxRKbzo0yGAT7vHiPA/at5PVj5qGhzZh/0nBhF5Z5Vjik
 TdKceHCcGdWNDRhxSwtFOSlSBefJMFr0Xw8OKuSS2J/LZdFozako/zePOaesOXbGgfwk
 SaMPYnKoIGZ2VR9gcpTrk0V5dwpc+To3nZE0/chNJycIpSUDaZFYqU+VFlaAQVg9qo8r
 GUCw==
X-Received: by 10.70.33.106 with SMTP id q10mr42526722pdi.120.1417377061611;
 Sun, 30 Nov 2014 11:51:01 -0800 (PST)
Received: from localhost ([180.201.223.129])
 by mx.google.com with ESMTPSA id df1sm15519075pbb.2.2014.11.30.11.50.59
 for <multiple recipients>
 (version=SSLv3 cipher=RC4-SHA bits=128/128);
 Sun, 30 Nov 2014 11:51:00 -0800 (PST)
Date: Mon, 01 Dec 2014 03:50:50 +0800
Message-Id: <20141201.035050.1157775322234029344.chriszheng99@HIDDEN>
Subject: A workaround for hunspell
From: Chris Zheng <chriszheng99@HIDDEN>
To: 19229 <at> debbugs.gnu.org
X-Mailer: Mew version 6.6 on Emacs 25.0.50 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: 19229
Cc: haroogan@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.4 (/)

Hi Alexander,
I think I have wasted more time than you. :(  I have a way to
workaround this problem.  See the below diff.  I don't know whether
this affect *nix users, so it just stays in my init files.

*** a	Mon Dec  1 03:40:31 2014
--- b	Mon Dec  1 03:40:31 2014
***************
*** 27,33 ****
  		(error "ispell-fhd: Default dict already defined as %s. Not using %s.\n"
  		       hunspell-default-dict dict)
  	      (setq affix-file dict)
! 	      (setq hunspell-default-dict (list basename affix-file)))
  	  (if (and (not (assoc basename ispell-hunspell-dict-paths-alist))
  		   (file-exists-p affix-file))
  	      ;; Entry has an associated .aff file and no previous value.
--- 27,35 ----
  		(error "ispell-fhd: Default dict already defined as %s. Not using %s.\n"
  		       hunspell-default-dict dict)
  	      (setq affix-file dict)
! 	      (setq hunspell-default-dict (list basename affix-file))
! 	      (add-to-list 'ispell-hunspell-dict-paths-alist
! 			   (list basename affix-file)))
  	  (if (and (not (assoc basename ispell-hunspell-dict-paths-alist))
  		   (file-exists-p affix-file))
  	      ;; Entry has an associated .aff file and no previous value.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Nov 2014 18:25:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 30 13:25:54 2014
Received: from localhost ([127.0.0.1]:50105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xv9Bx-00017h-NR
	for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 13:25:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53811)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Bv-00017X-7g
 for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 13:25:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Bt-0006Nb-Vv
 for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 13:25:50 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41632)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Bt-0006NX-RW
 for submit <at> debbugs.gnu.org; Sun, 30 Nov 2014 13:25:49 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55532)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Bs-0003BB-AB
 for bug-gnu-emacs@HIDDEN; Sun, 30 Nov 2014 13:25:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Br-0006Mq-C9
 for bug-gnu-emacs@HIDDEN; Sun, 30 Nov 2014 13:25:48 -0500
Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:56576)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <haroogan@HIDDEN>) id 1Xv9Br-0006MS-1h
 for bug-gnu-emacs@HIDDEN; Sun, 30 Nov 2014 13:25:47 -0500
Received: by mail-lb0-f172.google.com with SMTP id u10so7609217lbd.17
 for <bug-gnu-emacs@HIDDEN>; Sun, 30 Nov 2014 10:25:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=Df+huV/nSMmTdb9LO1mqV52I/4LbxFBei7Jmrm9Wj5k=;
 b=lxaGYeeXP7/e96EE8QrrXT4DQqJMz0JbK1h31Ibdk7vZEsJ2bh2aNHGZNf0LZC22wX
 7RCdvUpXVVPlmtjGiBlLlKz0qY8vWxqCqIVkADH/pwDumzJ8PiE+AHn+AEyt93IrMPTT
 8WdfSgBonv+2p5hXbKEx7i5sKTngPBgn8Gzx4zuK5HM8KjEiVAFhepcli1eYHDmPHT0/
 Oeioc+NX00SmrV9+zCQrz23FD67TsjSu+uVVE9RgerKEs595Xg/BA/YrfLSAwoPG43eI
 p7eRZ7Uvu3GcWDTXkxNOQc37f7yDCaXe4A/QS23uizsN1OgWGDPgOXYMGpWucED+unSs
 mk2g==
MIME-Version: 1.0
X-Received: by 10.112.16.168 with SMTP id h8mr53443945lbd.41.1417371945357;
 Sun, 30 Nov 2014 10:25:45 -0800 (PST)
Received: by 10.112.21.136 with HTTP; Sun, 30 Nov 2014 10:25:45 -0800 (PST)
Date: Sun, 30 Nov 2014 19:25:45 +0100
Message-ID: <CAKu-7WyWUmiR4jLR0u1p_b1vcdVr82eFn7jztZqn5QDeanQc7g@HIDDEN>
Subject: ispell-phaf: No matching entry for ...
From: Alexander Shukaev <haroogan@HIDDEN>
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Content-Type: multipart/alternative; boundary=001a11c3acb25157b40509179f57
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--001a11c3acb25157b40509179f57
Content-Type: text/plain; charset=UTF-8

Wasted the whole day on trying to make Hunspell work with Emacs on Windows
and still out of luck.

(setq ispell-program-name (executable-find "hunspell"))
(setq ispell-dictionary "en_US")

(require 'ispell)


This is the most basic configuration that should definitely work.

$ hunspell -D
> SEARCH PATH:
> .;C:/Tools/x64/MSYS2/mingw64/bin/;C:/Tools/x64/MSYS2/mingw64/share/hunspell;C:/Tools/x64/MSYS2/mingw64/share/myspell;C:/Tools/x64/MSYS2/mingw64/share/myspell/dicts;%USERPROFILE%\/Application
> Data/OpenOffice.org
> 2/user/wordbook;C:/Tools/x64/MSYS2/mingw64/share/hunspell;C:/Tools/x64/MSYS2/mingw64/share/myspell;C:/Tools/x64/MSYS2/mingw64/share/myspell/dicts
> AVAILABLE DICTIONARIES (path is not mandatory for -d option):
> LOADED DICTIONARY:
> C:/Tools/x64/MSYS2/mingw64/share/hunspell/en_US.aff
> C:/Tools/x64/MSYS2/mingw64/share/hunspell/en_US.dic
> Hunspell 1.3.3


I keep getting:

ispell-phaf: No matching entry for ...


and it's no surprise because `ispell-hunspell-dict-paths-alist' is `nil'.
Why?

--001a11c3acb25157b40509179f57
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Wasted the whole day on trying to make Hunspell work with =
Emacs on Windows and still out of luck.<div><br></div><blockquote style=3D"=
margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>(setq ispell-pro=
gram-name (executable-find &quot;hunspell&quot;))</div></div><div><div>(set=
q ispell-dictionary &quot;en_US&quot;)</div></div><div><div><br></div></div=
><div><div>(require &#39;ispell)</div></div></blockquote><div><br></div><di=
v>This is the most basic configuration that should definitely work.</div><d=
iv><br></div><div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-=
left-style:solid;padding-left:1ex">$ hunspell -D<br>SEARCH PATH:<br>.;C:/To=
ols/x64/MSYS2/mingw64/bin/;C:/Tools/x64/MSYS2/mingw64/share/hunspell;C:/Too=
ls/x64/MSYS2/mingw64/share/myspell;C:/Tools/x64/MSYS2/mingw64/share/myspell=
/dicts;%USERPROFILE%\/Application Data/OpenOffice.org 2/user/wordbook;C:/To=
ols/x64/MSYS2/mingw64/share/hunspell;C:/Tools/x64/MSYS2/mingw64/share/myspe=
ll;C:/Tools/x64/MSYS2/mingw64/share/myspell/dicts<br>AVAILABLE DICTIONARIES=
 (path is not mandatory for -d option):<br>LOADED DICTIONARY:<br>C:/Tools/x=
64/MSYS2/mingw64/share/hunspell/en_US.aff<br>C:/Tools/x64/MSYS2/mingw64/sha=
re/hunspell/en_US.dic<br>Hunspell 1.3.3</blockquote></div><div><br></div><d=
iv>I keep getting:</div><div><br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb=
(204,204,204);border-left-style:solid;padding-left:1ex">ispell-phaf: No mat=
ching entry for ...</blockquote><div><br></div><div>and it&#39;s no surpris=
e because `ispell-hunspell-dict-paths-alist&#39; is `nil&#39;. Why?</div></=
div>

--001a11c3acb25157b40509179f57--




Acknowledgement sent to Alexander Shukaev <haroogan@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#19229; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Dec 2014 17:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.