From unknown Wed Aug 20 03:37:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries Resent-From: Peter Oliver Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Nov 2014 17:51:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19073@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141616020720628 (code B ref -1); Sun, 16 Nov 2014 17:51:03 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2014 17:50:07 +0000 Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq3xc-0005MW-Vy for submit@debbugs.gnu.org; Sun, 16 Nov 2014 12:50:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52102) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpzzA-0004RY-8J for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xpzyz-0006Ch-9G for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:18 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyz-0006Cd-6x for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyu-0007zG-7i for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xpzyp-0005yB-8N for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:08 -0500 Received: from volta.triv.org.uk ([85.158.43.194]:47202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyp-0005tK-0Z for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:03 -0500 Received: from froglet.home.mavit.org.uk (localhost [IPv6:::1]) by volta.triv.org.uk (Postfix) with ESMTP id 4E49D4400A for ; Sun, 16 Nov 2014 13:35:00 +0000 (GMT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.14.7/8.14.7) with ESMTP id sAGDYvUn010018 for ; Sun, 16 Nov 2014 13:34:57 GMT Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.14.7/8.14.7/Submit) with ESMTP id sAGDYvmp010015 for ; Sun, 16 Nov 2014 13:34:57 GMT X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sun, 16 Nov 2014 13:34:57 +0000 (GMT) From: Peter Oliver Message-ID: User-Agent: Alpine 2.10 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811583-779846119-1416144897=:4053" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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.3 (----) X-Mailman-Approved-At: Sun, 16 Nov 2014 12:50:01 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-779846119-1416144897=:4053 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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 ---1463811583-779846119-1416144897=:4053 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch RnJvbSA2ZTUwOGIwN2IwMWY2MjUxMWUzNTZiMzRiOWEwZmE4NDU0ZGNlZGYz IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogU3VuLCAxNiBOb3YgMjAxNCAx MzozMjo0NSArMDAwMA0KU3ViamVjdDogW1BBVENIXSBEb24ndCBlcnJvciB3 aGVuIG5vIGRlZmF1bHQgSHVuc3BlbGwgZGljdGlvbmFyeSBpcyBkZXRlY3Rl ZC4NCg0KVGhpcyBoYXBwZW5zIHdoZW4gImh1bnNwZWxsIC1EIiBkb2VzIG5v dCByZXBvcnQgYSAiTE9BREVEIERJQ1RJT05BUlkiLg0KLS0tD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cGVuZCAobGlzdCBuaWwpIChjZHIgaHVuc3Bl bGwtZGVmYXVsdC1kaWN0LWVudHJ5KSkpKQ0KKyAgICAgICAgICAoYW5kIGh1 bnNwZWxsLWRlZmF1bHQtZGljdC1lbnRyeQ0KKyAgICAgICAgICAgICAgIChs aXN0IChhcHBlbmQgKGxpc3QgbmlsKSAoY2RyIGh1bnNwZWxsLWRlZmF1bHQt ZGljdC1lbnRyeSkpKSkpDQogICAgIChkb2xpc3QgKGRpY3QgKG1hcGNhciAn Y2FyIGlzcGVsbC1odW5zcGVsbC1kaWN0LXBhdGhzLWFsaXN0KSkNCiAgICAg ICAoaWYgKHN0cmluZz0gZGljdCBodW5zcGVsbC1kZWZhdWx0LWRpY3QpDQog CSAgKGFkZC10by1saXN0ICdpc3BlbGwtaHVuc3BlbGwtZGljdGlvbmFyeS1h bGlzdA0KLS0gDQoxLjguMy4xDQoNCg== ---1463811583-779846119-1416144897=:4053-- From unknown Wed Aug 20 03:37:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Nov 2014 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Peter Oliver Cc: 19073@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19073-submit@debbugs.gnu.org id=B19073.14162427319207 (code B ref 19073); Mon, 17 Nov 2014 16:46:02 +0000 Received: (at 19073) by debbugs.gnu.org; 17 Nov 2014 16:45:31 +0000 Received: from localhost ([127.0.0.1]:36484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqPQg-0002OP-Sk for submit@debbugs.gnu.org; Mon, 17 Nov 2014 11:45:31 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:63205) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqPQd-0002O7-AN for 19073@debbugs.gnu.org; Mon, 17 Nov 2014 11:45:28 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NF600E00ZPU5X00@a-mtaout22.012.net.il> for 19073@debbugs.gnu.org; Mon, 17 Nov 2014 18:45:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF600DVWZVPQB60@a-mtaout22.012.net.il>; Mon, 17 Nov 2014 18:45:25 +0200 (IST) Date: Mon, 17 Nov 2014 18:45:16 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83fvdhbwtf.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sun, 16 Nov 2014 13:34:57 +0000 (GMT) > From: Peter Oliver > > 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. It does for me: D:\usr\eli>hunspell -a -D 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\default D:\usr\bin\..\share\hunspell\ENU D:\usr\bin\..\share\hunspell\en_GB D:\usr\bin\..\share\hunspell\en_US D:\usr\bin\..\share\hunspell\HEB D:\usr\bin\..\share\hunspell\he_IL D:\usr\bin\..\share\hunspell\ru_RU LOADED DICTIONARY: <<<<<<<<<<<<<<<<< D:\usr\bin\..\share\hunspell\default.aff <<<<<<<<<<<<<<<<< D:\usr\bin\..\share\hunspell\default.dic <<<<<<<<<<<<<<<<< @(#) International Ispell Version 3.2.06 (but really Hunspell 1.3.2) > 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. I'm guessing that you have an old binary of the ported Hunspell. Please install the latest one from ezwinports and try again. (I'm using that myself with Emacs 24.4, and have absolutely no problems.) This problem indeed existed in the original port, but once I started using Emacs 24.4, I fixed it and uploaded a fixed binary (in April this year). From unknown Wed Aug 20 03:37:54 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Peter Oliver Subject: bug#19073: closed (Re: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries) Message-ID: References: X-Gnu-PR-Message: they-closed 19073 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 19073@debbugs.gnu.org Date: Sat, 22 Nov 2014 20:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1416687662-17289-1" This is a multi-part message in MIME format... ------------=_1416687662-17289-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19073: Ispell fails to initialise when hunspell does not report any loaded= dictionaries which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19073@debbugs.gnu.org. --=20 19073: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19073 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1416687662-17289-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19073-done) by debbugs.gnu.org; 22 Nov 2014 20:20:18 +0000 Received: from localhost ([127.0.0.1]:41971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsHAH-0004Tl-Pe for submit@debbugs.gnu.org; Sat, 22 Nov 2014 15:20:17 -0500 Received: from volta.triv.org.uk ([85.158.43.194]:42159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsHAF-0004Tc-FV for 19073-done@debbugs.gnu.org; Sat, 22 Nov 2014 15:20:16 -0500 Received: from froglet.home.mavit.org.uk (localhost [IPv6:::1]) by volta.triv.org.uk (Postfix) with ESMTP id 3FA6F4401D; Sat, 22 Nov 2014 20:20:13 +0000 (GMT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.14.7/8.14.7) with ESMTP id sAMKKAEL031685; Sat, 22 Nov 2014 20:20:10 GMT Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.14.7/8.14.7/Submit) with ESMTP id sAMKKAU8031681; Sat, 22 Nov 2014 20:20:10 GMT X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sat, 22 Nov 2014 20:20:10 +0000 (GMT) From: Peter Oliver To: Eli Zaretskii Subject: Re: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries In-Reply-To: <83fvdhbwtf.fsf@gnu.org> Message-ID: References: <83fvdhbwtf.fsf@gnu.org> User-Agent: Alpine 2.10 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19073-done Cc: 19073-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Mon, 17 Nov 2014, Eli Zaretskii wrote: > I'm guessing that you have an old binary of the ported Hunspell. > Please install the latest one from ezwinports and try again. You're quite right. I mistakenly believed that because I had version 1.3.2, and the latest ezwinports version was 1.3.2, that I had the latest release. Thanks. -- Peter Oliver ------------=_1416687662-17289-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Nov 2014 17:50:07 +0000 Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq3xc-0005MW-Vy for submit@debbugs.gnu.org; Sun, 16 Nov 2014 12:50:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52102) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpzzA-0004RY-8J for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xpzyz-0006Ch-9G for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:18 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyz-0006Cd-6x for submit@debbugs.gnu.org; Sun, 16 Nov 2014 08:35:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyu-0007zG-7i for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xpzyp-0005yB-8N for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:08 -0500 Received: from volta.triv.org.uk ([85.158.43.194]:47202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xpzyp-0005tK-0Z for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2014 08:35:03 -0500 Received: from froglet.home.mavit.org.uk (localhost [IPv6:::1]) by volta.triv.org.uk (Postfix) with ESMTP id 4E49D4400A for ; Sun, 16 Nov 2014 13:35:00 +0000 (GMT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.14.7/8.14.7) with ESMTP id sAGDYvUn010018 for ; Sun, 16 Nov 2014 13:34:57 GMT Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.14.7/8.14.7/Submit) with ESMTP id sAGDYvmp010015 for ; Sun, 16 Nov 2014 13:34:57 GMT X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sun, 16 Nov 2014 13:34:57 +0000 (GMT) From: Peter Oliver To: bug-gnu-emacs@gnu.org Subject: Ispell fails to initialise when hunspell does not report any loaded dictionaries Message-ID: User-Agent: Alpine 2.10 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811583-779846119-1416144897=:4053" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] 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.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 16 Nov 2014 12:50:01 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-779846119-1416144897=:4053 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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 ---1463811583-779846119-1416144897=:4053 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-Don-t-error-when-no-default-Hunspell-dictionary-is-d.patch RnJvbSA2ZTUwOGIwN2IwMWY2MjUxMWUzNTZiMzRiOWEwZmE4NDU0ZGNlZGYz IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogU3VuLCAxNiBOb3YgMjAxNCAx MzozMjo0NSArMDAwMA0KU3ViamVjdDogW1BBVENIXSBEb24ndCBlcnJvciB3 aGVuIG5vIGRlZmF1bHQgSHVuc3BlbGwgZGljdGlvbmFyeSBpcyBkZXRlY3Rl ZC4NCg0KVGhpcyBoYXBwZW5zIHdoZW4gImh1bnNwZWxsIC1EIiBkb2VzIG5v dCByZXBvcnQgYSAiTE9BREVEIERJQ1RJT05BUlkiLg0KLS0tDQogbGlzcC90 ZXh0bW9kZXMvaXNwZWxsLmVsIHwgNiArKysrLS0NCiAxIGZpbGUgY2hhbmdl ZCwgNCB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AgICAgICAoYW5kIGh1 bnNwZWxsLWRlZmF1bHQtZGljdC1lbnRyeQ0KKyAgICAgICAgICAgICAgIChs aXN0IChhcHBlbmQgKGxpc3QgbmlsKSAoY2RyIGh1bnNwZWxsLWRlZmF1bHQt ZGljdC1lbnRyeSkpKSkpDQogICAgIChkb2xpc3QgKGRpY3QgKG1hcGNhciAn Y2FyIGlzcGVsbC1odW5zcGVsbC1kaWN0LXBhdGhzLWFsaXN0KSkNCiAgICAg ICAoaWYgKHN0cmluZz0gZGljdCBodW5zcGVsbC1kZWZhdWx0LWRpY3QpDQog CSAgKGFkZC10by1saXN0ICdpc3BlbGwtaHVuc3BlbGwtZGljdGlvbmFyeS1h bGlzdA0KLS0gDQoxLjguMy4xDQoNCg== ---1463811583-779846119-1416144897=:4053-- ------------=_1416687662-17289-1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 28 14:14:38 2015 Received: (at control) by debbugs.gnu.org; 28 Jan 2015 19:14:38 +0000 Received: from localhost ([127.0.0.1]:59247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGY4U-0004d1-2v for submit@debbugs.gnu.org; Wed, 28 Jan 2015 14:14:38 -0500 Received: from p3plsmtpa09-06.prod.phx3.secureserver.net ([173.201.193.235]:37902) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGY4S-0004co-3k for control@debbugs.gnu.org; Wed, 28 Jan 2015 14:14:36 -0500 Received: from [192.168.178.32] ([81.221.45.135]) by p3plsmtpa09-06.prod.phx3.secureserver.net with id lXEU1p00C2uzgYH01XEVrg; Wed, 28 Jan 2015 12:14:30 -0700 Message-ID: <54C93514.2080707@resiak.org> Date: Wed, 28 Jan 2015 20:14:28 +0100 From: PK User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Archived problem report bug#19073 References: In-Reply-To: X-Forwarded-Message-Id: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: djc@resiak.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) unarchive 19073 From unknown Wed Aug 20 03:37:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries Resent-From: PK Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jan 2015 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: 19073@debbugs.gnu.org Reply-To: djc@resiak.org Received: via spool by 19073-submit@debbugs.gnu.org id=B19073.14224793735285 (code B ref 19073); Wed, 28 Jan 2015 21:10:02 +0000 Received: (at 19073) by debbugs.gnu.org; 28 Jan 2015 21:09:33 +0000 Received: from localhost ([127.0.0.1]:56715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGZrh-0001NB-Cs for submit@debbugs.gnu.org; Wed, 28 Jan 2015 16:09:33 -0500 Received: from p3plsmtpa07-10.prod.phx3.secureserver.net ([173.201.192.239]:47464) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGZre-0001Mv-OJ for 19073@debbugs.gnu.org; Wed, 28 Jan 2015 16:09:31 -0500 Received: from [192.168.178.32] ([81.221.45.135]) by p3plsmtpa07-10.prod.phx3.secureserver.net with id lZ9P1p00K2uzgYH01Z9Qp5; Wed, 28 Jan 2015 14:09:25 -0700 Message-ID: <54C95003.3010707@resiak.org> Date: Wed, 28 Jan 2015 22:09:23 +0100 From: PK User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 References: <54C93088.4000908@resiak.org> In-Reply-To: <54C93088.4000908@resiak.org> X-Forwarded-Message-Id: <54C93088.4000908@resiak.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) With relation to the discussion of this bug in gnu.emacs.bug: I've installed the latest ezwinport of hunspell 1.3.2 (suggested by Eli Zaretskii) and ispell still fails with the "ispell-phaf ... nil" error under my setup of emacs 24.4.1 (Windows), which I described in https://lists.gnu.org/archive/html/help-gnu-emacs/2014-04/msg00030.html for Emacs 24.3, where the setup works fine with the same installation of hunspell. Is there an accepted fix to ispell.el under 24.4 for this? Or an accepted compatible way to invoke ispell? (Compatible across emacs versions, that is.) Clearly something changed for ispell between 24.3 and 24.4 that made my setup stop working. But if it's a change I should accommodate, I'd like to know what to do, because that's not clear to me. Thanks. PK From unknown Wed Aug 20 03:37:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19073: Ispell fails to initialise when hunspell does not report any loaded dictionaries Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jan 2015 03:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: djc@resiak.org Cc: 19073@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 19073-submit@debbugs.gnu.org id=B19073.14225033609683 (code B ref 19073); Thu, 29 Jan 2015 03:50:02 +0000 Received: (at 19073) by debbugs.gnu.org; 29 Jan 2015 03:49:20 +0000 Received: from localhost ([127.0.0.1]:56775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGg6Z-0002W7-UC for submit@debbugs.gnu.org; Wed, 28 Jan 2015 22:49:20 -0500 Received: from mtaout24.012.net.il ([80.179.55.180]:45073) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YGg6W-0002Vr-LQ for 19073@debbugs.gnu.org; Wed, 28 Jan 2015 22:49:17 -0500 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NIX0040057XIN00@mtaout24.012.net.il> for 19073@debbugs.gnu.org; Thu, 29 Jan 2015 05:41:00 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIX0062S68C5N20@mtaout24.012.net.il>; Thu, 29 Jan 2015 05:41:00 +0200 (IST) Date: Thu, 29 Jan 2015 05:49:04 +0200 From: Eli Zaretskii In-reply-to: <54C95003.3010707@resiak.org> X-012-Sender: halo1@inter.net.il Message-id: <831tment5b.fsf@gnu.org> References: <54C93088.4000908@resiak.org> <54C95003.3010707@resiak.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 28 Jan 2015 22:09:23 +0100 > From: PK > > With relation to the discussion of this bug in gnu.emacs.bug: I've > installed the latest ezwinport of hunspell 1.3.2 (suggested by Eli > Zaretskii) and ispell still fails with the "ispell-phaf ... nil" error > under my setup of emacs 24.4.1 (Windows), which I described in > > https://lists.gnu.org/archive/html/help-gnu-emacs/2014-04/msg00030.html > > for Emacs 24.3, where the setup works fine with the same installation > of hunspell. Is there an accepted fix to ispell.el under 24.4 for this? I am using that very version of Hunspell with Emacs 24.4 all the time, in several different languages, and it works for me without any fixes. > Or an accepted compatible way to invoke ispell? (Compatible across emacs > versions, that is.) Emacs 24.4 did change significantly how dictionaries are set up with Hunspell, so it might be hard to find a setup that works the same with prior versions. I suspect your setup is the culprit. In particular, try in "emacs -Q" or without your ispell-local-dictionary-alist setting. It's not needed anymore.