From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii 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 18:10:47 +0200 Message-ID: <83k1l1jfy0.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1543163180 4224 195.159.176.226 (25 Nov 2018 16:26:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 16:26:20 +0000 (UTC) Cc: 33493@debbugs.gnu.org To: Philipp Uhl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 17:26:15 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 1gQxEd-0000yr-P1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 17:26:15 +0100 Original-Received: from localhost ([::1]:60369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQxGk-0002yH-Dq for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 11:28:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQxEp-0000f3-9x for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 11:26:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQwzu-0004Zw-DU for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 11:11:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQwzu-0004Zn-AI for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 11:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gQwzu-0007gj-5K for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 11:11: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: Sun, 25 Nov 2018 16:11: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.154316225629541 (code B ref 33493); Sun, 25 Nov 2018 16:11:02 +0000 Original-Received: (at 33493) by debbugs.gnu.org; 25 Nov 2018 16:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:47508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQwzo-0007gP-D4 for submit@debbugs.gnu.org; Sun, 25 Nov 2018 11:10:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQwzm-0007gD-OJ for 33493@debbugs.gnu.org; Sun, 25 Nov 2018 11:10:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQwzc-0004HB-Qt for 33493@debbugs.gnu.org; Sun, 25 Nov 2018 11:10:49 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQwzc-0004H1-Nn; Sun, 25 Nov 2018 11:10:44 -0500 Original-Received: from [176.228.60.248] (port=3279 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gQwzc-0004GE-CN; Sun, 25 Nov 2018 11:10:44 -0500 In-reply-to: (message from Philipp Uhl on Sun, 25 Nov 2018 00:17:02 +0100) 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: 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:152758 Archived-At: > 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))