From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Uhl Newsgroups: gmane.emacs.bugs Subject: bug#33493: 26.1; New Version of Hunspell (1.7.0-1) brakes ispell.el Date: Sun, 25 Nov 2018 20:22:08 +0100 Message-ID: <3e144cd3-f4b2-6280-b2f3-7a9e6984adbc@rwth-aachen.de> References: <83k1l1jfy0.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1543173664 10974 195.159.176.226 (25 Nov 2018 19:21:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 19:21:04 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 Cc: 33493@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 20:21:00 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 1gQzxj-0002g1-9j for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 20:20:59 +0100 Original-Received: from localhost ([::1]:60977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQzzp-0003AA-NF for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 14:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQzzj-0003A5-GD for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 14:23:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQzzi-0001vB-DP for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 14:23:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQzzi-0001v5-9K for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 14:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gQzzi-0005vB-5G for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 14:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Uhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Nov 2018 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33493-submit@debbugs.gnu.org id=B33493.154317378022740 (code B ref 33493); Sun, 25 Nov 2018 19:23:02 +0000 Original-Received: (at 33493) by debbugs.gnu.org; 25 Nov 2018 19:23:00 +0000 Original-Received: from localhost ([127.0.0.1]:47607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQzzf-0005uh-O5 for submit@debbugs.gnu.org; Sun, 25 Nov 2018 14:22:59 -0500 Original-Received: from mail-out-1.itc.rwth-aachen.de ([134.130.5.46]:45364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQzzd-0005uY-KV for 33493@debbugs.gnu.org; Sun, 25 Nov 2018 14:22:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2D+AgAt9vpb/6EagoZhHAEBAQQBAQcEAQGBZYIEgg8Kg2+UFoFoJZk2DAEshEAChBgiOBIBAwEBAgEBAm0ohTwBAQEBAyMPAQVBEAsUAQMCAiYCAkcQBg0BBQIBAYMdggIEpgGBL4VAhFcJAYEBin6BVz+BOAyCX4gCglcCoAIHAoERgQsEjwkegVmIAwWHJ4ltjhwCAgICCQIUgV0hgVUzGiSDO4InF44dPzKBKIsJAYEeAQE X-IPAS-Result: A2D+AgAt9vpb/6EagoZhHAEBAQQBAQcEAQGBZYIEgg8Kg2+UFoFoJZk2DAEshEAChBgiOBIBAwEBAgEBAm0ohTwBAQEBAyMPAQVBEAsUAQMCAiYCAkcQBg0BBQIBAYMdggIEpgGBL4VAhFcJAYEBin6BVz+BOAyCX4gCglcCoAIHAoERgQsEjwkegVmIAwWHJ4ltjhwCAgICCQIUgV0hgVUzGiSDO4InF44dPzKBKIsJAYEeAQE X-IronPort-AV: E=Sophos;i="5.56,279,1539640800"; d="scan'208";a="62196814" Original-Received: from rwthex-s3-b.rwth-ad.de ([134.130.26.161]) by mail-in-1.itc.rwth-aachen.de with ESMTP; 25 Nov 2018 20:22:51 +0100 Original-Received: from [10.8.8.95] (83.143.245.190) by rwthex-s3-b.rwth-ad.de (2a00:8a60:1:e500::26:161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Sun, 25 Nov 2018 20:22:51 +0100 In-Reply-To: <83k1l1jfy0.fsf@gnu.org> Content-Language: en-GB X-Originating-IP: [83.143.245.190] X-ClientProxiedBy: rwthex-s2-b.rwth-ad.de (2a00:8a60:1:e500::26:155) To rwthex-s3-b.rwth-ad.de (2a00:8a60:1:e500::26:161) 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:152767 Archived-At: Yes, it appears to resolve the issue. Thank you very much, best regards Philipp On 25.11.18 17:10, Eli Zaretskii wrote: >> From: Philipp Uhl >> Date: Sun, 25 Nov 2018 00:17:02 +0100 >> >> After the update from hunspell 1.6.2-1 to 1.7.0-1 the ispell package >> printed the following messages: >> >> Starting new Ispell process hunspell with en_US dictionary... >> Setting up indent for shell type zsh >> Indentation variables are now local. >> Indentation setup for shell type zsh >> Error in post-command-hook (flyspell-post-command-hook): (error "No data >> for dictionary \"en_US\" in ‘ispell-local-dictionary-alist’ or >> ‘ispell-dictionary-alist’") >> >> I checked and ispell-local-dictionary-alist and ispell-dictionary-alist >> are both nil. >> >> Consequently my hunspell setup did't work but the error occures on >> running (ispell). > This is due to an incompatible change in Hunspell, for a reason that > looks entirely arbitrary to me: Hunspell will now show the LOADED > DICTIONARY header (which ispell.el expects and on which it depends) > only if there's at least one file argument on the command line. Why > they made that change is anybody's guess. > > Does the patch below resolve the problem? > > diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el > index e77bc7e..9789968 100644 > --- a/lisp/textmodes/ispell.el > +++ b/lisp/textmodes/ispell.el > @@ -1113,7 +1113,12 @@ ispell-find-hunspell-dictionaries > null-device > t > nil > - "-D") > + ;; 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))