From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#34272: 26.1.91 M-x flyspell-mode Date: Sat, 09 Feb 2019 18:48:31 +0900 (JST) Message-ID: <20190209.184831.1254873787557625236.tkk@misasa.okayama-u.ac.jp> References: <83d0o2rb7t.fsf@gnu.org> <20190208.203001.2196726877618799295.tkk@misasa.okayama-u.ac.jp> <83mun5nwuu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="5103"; mail-complaints-to="usenet@blaine.gmane.org" Cc: homeros.misasa@gmail.com, tkk@misasa.okayama-u.ac.jp, 34272@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 09 10:50:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsPH2-000197-29 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 10:50:12 +0100 Original-Received: from localhost ([127.0.0.1]:43271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsPH0-0000XC-Vu for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 04:50:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsPGs-0000Wv-MS for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:50:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsPGr-0004iT-S5 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsPGr-0004iO-PB for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsPGr-0002JP-Lt for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Feb 2019 09:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34272 X-GNU-PR-Package: emacs Original-Received: via spool by 34272-submit@debbugs.gnu.org id=B34272.15497057428765 (code B ref 34272); Sat, 09 Feb 2019 09:50:01 +0000 Original-Received: (at 34272) by debbugs.gnu.org; 9 Feb 2019 09:49:02 +0000 Original-Received: from localhost ([127.0.0.1]:40473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsPFu-0002HJ-0h for submit@debbugs.gnu.org; Sat, 09 Feb 2019 04:49:02 -0500 Original-Received: from mlsec.cc.okayama-u.ac.jp ([42.127.236.175]:15784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsPFq-0002Gj-Sp for 34272@debbugs.gnu.org; Sat, 09 Feb 2019 04:48:59 -0500 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 20c8_8738_523e2043_25d8_4b7f_b712_182c33afdc13; Sat, 09 Feb 2019 18:48:47 +0900 Original-Received: from localhost (p219005-ipngn200207tottori.tottori.ocn.ne.jp [153.182.218.5]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 005344C0ABB; Sat, 9 Feb 2019 18:48:31 +0900 (JST) In-Reply-To: <83mun5nwuu.fsf@gnu.org> X-Mailer: Mew version 6.8 on Emacs 26.1 X-NAI-Spam-Flag: NO X-NAI-Spam-Level: ********** X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 10.1 X-NAI-Spam-Rules: 6 Rules triggered TS_MSG_REP_80_512=10, RCVD_BAD_SIP=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_FAIL=0, RV6479=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6479> : inlines <7014> : streams <1812524> : uri <2793386> 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: 209.51.188.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:155293 Archived-At: >> I traced `ispell-find-hunspell-dictionaries' using Edebug. I have an >> impression, problem is something to do with initialization on >> `hunspell-default-dict'. The output is shown below. > > hunspell-default-dict is computed in this function, > ispell-find-hunspell-dictionaries. It starts as nil, and then the > function iterates through the list of dictionaries produced by the > command "hunspell -D nul", looking for a dictionary name that ends > with a ".aff". Here's the relevant portion of the code: > > (let ((hunspell-found-dicts > (split-string > (with-temp-buffer > (ispell-call-process ispell-program-name > null-device > t > nil > ;; Hunspell 1.7.0 (and later?) won't > ;; show LOADED DICTIONARY unless > ;; there's at least one file argument > ;; on the command line. So we feed > ;; it with the null device. > "-D" null-device) > (buffer-string)) > "[\n\r]+" > t)) I think that I found issue. In my environment, `ispell-call-process' returns empty string with `null-device'. Output with and without `null-device' is shown below. * With `null-device' (with-temp-buffer (ispell-call-process ispell-program-name null-device t nil ;; Hunspell 1.7.0 (and later?) won't ;; show LOADED DICTIONARY unless ;; there's at least one file argument ;; on the command line. So we feed ;; it with the null device. "-D" null-device) (buffer-string)) ; => "" * Without `null-device', (with-temp-buffer (ispell-call-process ispell-program-name null-device t nil ;; Hunspell 1.7.0 (and later?) won't ;; show LOADED DICTIONARY unless ;; there's at least one file argument ;; on the command line. So we feed ;; it with the null device. "-D") (buffer-string)) ; => see below "SEARCH PATH: .;c:/msys64/mingw64/bin/;c:/msys64/mingw64/share/hunspell;c:/msys64/mingw64/share/myspell;c:/msys64/mingw64/share/myspell/dicts;c:/msys64;%USERPROFILE%/Application Data/OpenOffice.org 2/user/wordbook;c:/msys64/mingw64/share/dict/ooo; AVAILABLE DICTIONARIES (path is not mandatory for -d option): c:/msys64/mingw64/share/hunspell/en_AG ... c:/msys64/mingw64/share/hunspell/en_ZW c:/msys64/mingw64/share/myspell/dicts/en_AG ... c:/msys64/mingw64/share/myspell/dicts/en_ZW LOADED DICTIONARY: c:/msys64/mingw64/share/hunspell/en_US.aff c:/msys64/mingw64/share/hunspell/en_US.dic Hunspell 1.6.2 "