bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19073: Ispell fails to initialise when hunspell does not report any


From: Peter Oliver
Subject: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries
Date: Sun, 16 Nov 2014 13:34:57 +0000 (GMT)
User-agent: Alpine 2.10 (LFD 1266 2009-07-14)

The build of Hunspell 1.3.2 at http://sourceforge.net/projects/ezwinports/files/ from doesn't 
output the "LOADED DICTIONARY:" section when "hunspell -D" is run.  I don't 
know if this is a bug in hunspell, or in the build, or if this feature is missing on Windows, or if 
there is some other reason.

In any case, this missing section confuses function 
ispell-find-hunspell-dictionaries in Emacs 24.4 (I'm using the build at 
http://sourceforge.net/projects/emacs-bin/files/releases/emacs-24.4-bin-i686-pc-mingw32.7z/download).
  Variable hunspell-default-dict never gets set, meaning function 
ispell-parse-hunspell-affix-file ends up being called with a nil argument and 
erroring.

The attached patch gets things working again for me, although I must admit I 
don't understand the implications of not detecting a default dictionary.

If this patch is used, I believe that I will need to sign legal papers before 
patches from me can be accepted.  I am happy to do so.

--
Peter Oliver

Attachment: 0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]