From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25825: 25.1; ispell-find-hunspell-dictionaries not working on Windows Date: Wed, 26 Aug 2020 21:28:11 +0300 Message-ID: <83o8mx2res.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sw9@outlook.com, 25825@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 20:30:35 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kB0Bs-0003qZ-SZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 20:30:32 +0200 Original-Received: from localhost ([::1]:51708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB0Br-0001iU-V0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 14:30:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB0AQ-0000K4-RT for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 14:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kB0AQ-0007eL-G9 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 14:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kB0AQ-00089h-Cv for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 14:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2020 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25825 X-GNU-PR-Package: emacs Original-Received: via spool by 25825-submit@debbugs.gnu.org id=B25825.159846651331304 (code B ref 25825); Wed, 26 Aug 2020 18:29:02 +0000 Original-Received: (at 25825) by debbugs.gnu.org; 26 Aug 2020 18:28:33 +0000 Original-Received: from localhost ([127.0.0.1]:40773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB09x-00088q-Gt for submit@debbugs.gnu.org; Wed, 26 Aug 2020 14:28:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kB09v-00088d-MD for 25825@debbugs.gnu.org; Wed, 26 Aug 2020 14:28:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37841) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB09q-0007ZW-3d; Wed, 26 Aug 2020 14:28:26 -0400 Original-Received: from [176.228.60.248] (port=2659 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kB09o-0003hy-6x; Wed, 26 Aug 2020 14:28:24 -0400 In-Reply-To: (message from Stefan Kangas on Wed, 26 Aug 2020 11:09:21 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186461 Archived-At: > From: Stefan Kangas > Date: Wed, 26 Aug 2020 11:09:21 -0700 > Cc: 25825@debbugs.gnu.org > > Looking at `ispell-find-hunspell-dictionaries', I don't see how it would > work at all. It is using the output from "hunspell -D", and will only > set the local variable `hunspell-default-dict' if any of the output > lines match ".aff$". > > But the output from "hunspell -D" looks like this on my machine: > > $ hunspell -D > SEARCH PATH: > .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/skangas/.openoffice.org/3/user/wordbook:/home/skangas/.openoffice.org2/user/wordbook:/home/skangas/.openoffice.org2.0/user/wordbook:/home/skangas/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo > AVAILABLE DICTIONARIES (path is not mandatory for -d option): > /usr/share/hunspell/en_US > /usr/share/hunspell/sv_FI > /usr/share/hunspell/sv_SE > /home/skangas/.openoffice.org/3/user/wordbook/standard Hunspell is supposed to display this at the end of the "available dictionaries" output: LOADED DICTIONARY: /usr/share/hunspell/default.aff /usr/share/hunspell/default.dic (The "default" part can be different in your case.) The Hunspell I have does show this. If yours doesn't, perhaps they've changed the output in later versions, in which case we need to figure out how to force the newer Hunspell to output the loaded dictionary. Because just knowing what dictionaries are available is not enough. So please read the man page for Hunspell you have, and tell how to ask Hunspell for that missing part. Note that the code already includes a quirk for Hunspell 1.7.0, maybe it doesn't work with later versions? In any case, this cannot be the reason for the OP's problem, because he evidently uses the same version of Hunspell that I do (the ezwinports site is where I upload the ports I use myself). > (I would also suggest to install the attached patch to immediately > filter out the useless lines "SEARCH PATH", "AVAILABLE DICTIONARIES", > etc.) I don't think I understand the reason. Why should we care what else does Hunspell output in this case?