From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Didier Newsgroups: gmane.emacs.bugs Subject: bug#32471: 26.1; ispell throwing wrong-type-argument stringp nil on Windows 10, with emacs 26.1 and hunspell Date: Mon, 20 Aug 2018 01:12:02 -0700 Message-ID: References: <83efevfrq8.fsf@gnu.org> <838t53fq5h.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000079e5ec0573d977e8" X-Trace: blaine.gmane.org 1534752670 30155 195.159.176.226 (20 Aug 2018 08:11:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 08:11:10 +0000 (UTC) Cc: 32471@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 20 10:11:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frfHC-0007dq-CT for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Aug 2018 10:11:02 +0200 Original-Received: from localhost ([::1]:45462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frfJI-0002qQ-Ml for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Aug 2018 04:13:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frfJB-0002qI-RM for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 04:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frfJ8-00057L-MN for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 04:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49996) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frfJ8-00057A-Ja for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 04:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frfJ8-0007cn-9L for bug-gnu-emacs@gnu.org; Mon, 20 Aug 2018 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Didier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Aug 2018 08:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32471-submit@debbugs.gnu.org id=B32471.153475274029249 (code B ref 32471); Mon, 20 Aug 2018 08:13:02 +0000 Original-Received: (at 32471) by debbugs.gnu.org; 20 Aug 2018 08:12:20 +0000 Original-Received: from localhost ([127.0.0.1]:55014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frfIS-0007bh-2X for submit@debbugs.gnu.org; Mon, 20 Aug 2018 04:12:20 -0400 Original-Received: from mail-vk0-f46.google.com ([209.85.213.46]:38147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1frfIQ-0007bQ-QG for 32471@debbugs.gnu.org; Mon, 20 Aug 2018 04:12:19 -0400 Original-Received: by mail-vk0-f46.google.com with SMTP id k82-v6so6070246vkd.5 for <32471@debbugs.gnu.org>; Mon, 20 Aug 2018 01:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ukahmQtCx2Z1eEG8SIB8FvGJoP5RnCQyR9CmvxtqIh0=; b=fRwGfFuLce5+XSvOUKEoigaL4jeBxpz2KiNKqHZ8fDOADq03jQfBiaFxS3zPGrtxop oKVJovsQ4q5naqn/oqlBK08xxhM4aDSdu+pUCpxclO/y7VJDSCKWJfIcYTm3UJLgK0sE royr+UwRTtVyMNou2/i44kiY8TaQI2XAfUco08cgfyglEaWG7q3wFaja4/HJGX6xt84Z bwMY3OFpMzbZ4yNnE0CkdbDmHaabDgi3ZLdvwYaG2I5+p+hAIXhYWrcJUKKsJkZnWm8y q6E4YqqnbepmfbM7MXNXKTtRbEGHsVs+1/c/PB1L/62YYvg3q8P84kU4j8qTiSZwPdD4 E/lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ukahmQtCx2Z1eEG8SIB8FvGJoP5RnCQyR9CmvxtqIh0=; b=rULh5xanW8B4zXWyrv7M8XXxVnstRgYmQqUL7GcGDlbs/7P4FziO3u/b0pxGCL9+e8 TwiX208abeGFu7l7dAKXYACIG8/0D9yNb8NksNUn4hwA1lVDuXjHPrPL92Lg/4V4m9d1 x5WAW7bvxSQ5x/s58xMsEZepPL/aHS4wokxCvhRbv+OnmimbVhmAqpnsLuyhP7Jvqi+E cLaHcXtMBlM/Yp0LrFgH0qEEjmJL5D9ob334O2GF1GGwNQtcVHLIcxa8ZTkgbKNmRq8i xVJu6lnerzgzOMBKfM/CWlan9CtmjRZdTU6EzsDuJX062mSDLTaEWHBfzcKawqwm/Brw gSlA== X-Gm-Message-State: AOUpUlGoCMlG9D0C+WcCdvYKQOsncAsn7WkjBK0v9zjcW7aw2ctipgOh /KtZcKVv5VIXmc2VxcdtieOblD97iYVeytf+VL4qzQ== X-Google-Smtp-Source: AA+uWPz443cJ3UanhSBBlD6nhx2EbKApLAf+cwM59P2mrBQY++D8cKbRblKEbJVP2q4zffQmfAKvYyJDFgQXFJ2zZbs= X-Received: by 2002:a1f:a182:: with SMTP id k124-v6mr29257564vke.118.1534752733126; Mon, 20 Aug 2018 01:12:13 -0700 (PDT) In-Reply-To: <838t53fq5h.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:149612 Archived-At: --00000000000079e5ec0573d977e8 Content-Type: text/plain; charset="UTF-8" If I run hunspell -D from the command line, I get: SEARCH PATH: .;;C:\Hunspell\;C:\Users\didibus\.openoffice.org\3\user\wordbook;C:\Users\didibus\hunspell\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\didibus\hunspell\bin\..\share\hunspell\default C:\Users\didibus\hunspell\bin\..\share\hunspell\en_GB C:\Users\didibus\hunspell\bin\..\share\hunspell\en_US Can't open affix or dictionary files for dictionary named "ENU". I got the windows port of hunspell from here: https://sourceforge.net/projects/ezwinports/files/ When I do ispell-change-dictionary to en_US it says: (match required), and nothing happens. This is the content of my c:\Users\didibus\hunspell\share\hunspell folder: README_en_GB.txt README_en_US.txt default.aff default.dic dictionary.lst en_GB.aff en_GB.dic en_US.aff en_US.dic By the way, it seems I can get it to work if I add the following to my init file: (setq ispell-dictionary "en_US") (setq ispell-dictionary-alist '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "en_US" "-p" "C:\\Users\\didibus\\hunspell\\share\\hunspell\\en_US.aff") nil utf-8))) But it's because ispell is not able to automatically populate ispell-dictionary-alist, and ideally it should. In the mean time, I can live with manually populating it. Thank you On Sat, 18 Aug 2018 at 12:09 Eli Zaretskii wrote: > > Date: Sat, 18 Aug 2018 21:35:11 +0300 > > From: Eli Zaretskii > > Cc: 32471@debbugs.gnu.org > > > > > "Can't open affix or dictionary files for dictionary named \"ENU\".") > > This error message, btw, could be part of your configuration problem. > Does it help to say > > M-x ispell-change-dictionary RET en_US RET > > ? If not, please tell what files do you have in the directory > c:\Users\didibus\hunspell\share\hunspell. > --00000000000079e5ec0573d977e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If I run hunspell -D from the command line, I get:

SEARCH PATH:
.;;C:\Hunspell\;C:\Users\didibus\.openoffice.org\3\user\wordbook;C:\Users= \didibus\hunspell\bin\..\share\hunspell;C:\Program files\OpenOffice.org 2.4= \share\dict\ooo\;C:\Program files\OpenOffice.org 2.3\share\dict\ooo\;C:\Pro= gram files\OpenOffice.org 2.2\share\dict\ooo\;C:\Program files\OpenOffice.o= rg 2.1\share\dict\ooo\;C:\Program files\OpenOffice.org 2.0\share\dict\ooo\<= br>AVAILABLE DICTIONARIES (path is not mandatory for -d option):
C:\User= s\didibus\hunspell\bin\..\share\hunspell\default
C:\Users\didibus\hunspe= ll\bin\..\share\hunspell\en_GB
C:\Users\didibus\hunspell\bin\..\share\hu= nspell\en_US
Can't open affix or dictionary files for dictionary nam= ed "ENU".

I got the windows port of huns= pell from here: https://sourceforge.net/projects/ezwinports/files/

When I do ispell-change-dictionary to en_US it says: (match requir= ed), and nothing happens.

This is the content of m= y c:\Users\didibus\hunspell\share\hunspell folder:

README_en_GB.txt
README_en_US.txt
d= efault.aff
default.dic
dictionary.lst
en_GB.aff
en_GB.dic
en= _US.aff
en_US.dic

By the way, it seems I can ge= t it to work if I add the following to my init file:

=C2=A0=C2=A0=C2=A0 (setq ispell-dictionary "en_US")
=C2=A0= =C2=A0=C2=A0 (setq ispell-dictionary-alist
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 '(("en_US" "[[:alpha:]]"= ; "[^[:alpha:]]" "[']"
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 t ("-d" "en= _US" "-p" "C:\\Users\\didibus\\hunspell\\share\\hunspel= l\\en_US.aff") nil utf-8)))

But it's beca= use ispell is not able to automatically populate ispell-dictionary-alist, a= nd ideally it should. In the mean time, I can live with manually populating= it.

Thank you

On Sat, 18 Aug 2018 at 12:09 Eli Zaretski= i <eliz@gnu.org> wrote:
=
> Date: Sat, 18 Aug 2018 21:35:11 +0300 > From: Eli Zaretskii <eliz@gnu.org>
> Cc: 32471@d= ebbugs.gnu.org
>
> > "Can't open affix or dictionary files for dictionary nam= ed \"ENU\".")

This error message, btw, could be part of your configuration problem.
Does it help to say

=C2=A0 M-x ispell-change-dictionary RET en_US RET

?=C2=A0 If not, please tell what files do you have in the directory
c:\Users\didibus\hunspell\share\hunspell.
--00000000000079e5ec0573d977e8--