From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34272: 26.1.91 M-x flyspell-mode Date: Sat, 09 Feb 2019 11:18:33 +0200 Message-ID: <83mun5nwuu.fsf@gnu.org> References: <86zhrfwr5u.fsf@misasa.okayama-u.ac.jp> <83d0o2rb7t.fsf@gnu.org> <20190208.203001.2196726877618799295.tkk@misasa.okayama-u.ac.jp> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="132727"; mail-complaints-to="usenet@blaine.gmane.org" Cc: homeros.misasa@gmail.com, 34272@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 09 10:20:20 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 1gsOo7-000YM5-9Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 10:20:19 +0100 Original-Received: from localhost ([127.0.0.1]:43039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsOo6-0004pX-0N for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Feb 2019 04:20:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsOnz-0004pH-Hv for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:20:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsOnx-0004Xj-69 for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:20:11 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gsOnq-0004T4-ES for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:20:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gsOnq-0001ai-3H for bug-gnu-emacs@gnu.org; Sat, 09 Feb 2019 04:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Feb 2019 09:20:02 +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.15497039446043 (code B ref 34272); Sat, 09 Feb 2019 09:20:02 +0000 Original-Received: (at 34272) by debbugs.gnu.org; 9 Feb 2019 09:19:04 +0000 Original-Received: from localhost ([127.0.0.1]:40459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsOmu-0001ZP-1C for submit@debbugs.gnu.org; Sat, 09 Feb 2019 04:19:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gsOms-0001Yu-3H for 34272@debbugs.gnu.org; Sat, 09 Feb 2019 04:19:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsOmj-0003Ym-K9; Sat, 09 Feb 2019 04:18:53 -0500 Original-Received: from [176.228.60.248] (port=2720 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gsOmj-0007kf-6w; Sat, 09 Feb 2019 04:18:53 -0500 In-reply-to: <20190208.203001.2196726877618799295.tkk@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Fri, 08 Feb 2019 20:30:01 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:155291 Archived-At: > Date: Fri, 08 Feb 2019 20:30:01 +0900 (JST) > Cc: homeros.misasa@gmail.com, 34272@debbugs.gnu.org, > tkk@misasa.okayama-u.ac.jp > From: Tak Kunihiro > > 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. Thanks. 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)) hunspell-default-dict hunspell-default-dict-entry hunspell-multi-dict) (dolist (dict hunspell-found-dicts) (let* ((full-name (file-name-nondirectory dict)) (basename (file-name-sans-extension full-name)) (affix-file (concat dict ".aff"))) (if (string-match "\\.aff$" dict) ;; Found default dictionary (progn (if hunspell-default-dict (setq hunspell-multi-dict (concat (or hunspell-multi-dict (car hunspell-default-dict)) "," basename)) (setq affix-file dict) I need to understand what goes wrong inside this dolist loop that causes hunspell-default-dict be left at its initial nil value. This portion is entirely missing from your trace: > * Lines surveyed > > ispell:1104: (defun ispell-find-hunspell-dictionaries () > ... > ispell:1187: (setq hunspell-default-dict (or hunspell-multi-dict > ispell:1188: (car hunspell-default-dict))) > ispell:1189: (setq hunspell-default-dict-entry > ispell:1190: (ispell-parse-hunspell-affix-file hunspell-default-dict)) This jumps from line 1104 to 1187, whereas the code fragment shown above is between lines 1129 and 1158. Please show me what happens in that loop, because this is the key to the problem, I think. (I tried to simulate what should be happening for you, by using the Hunspell output you have shown in your previous message, but couldn't spot any problem Thanks.