From: Eli Zaretskii <eliz@gnu.org>
To: Philipp Uhl <philipp.uhl@rwth-aachen.de>
Cc: 33493@debbugs.gnu.org
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 [thread overview]
Message-ID: <83k1l1jfy0.fsf@gnu.org> (raw)
In-Reply-To: <da0734cf-15b0-0d42-140a-99ede2d0242c@rwth-aachen.de> (message from Philipp Uhl on Sun, 25 Nov 2018 00:17:02 +0100)
> From: Philipp Uhl <philipp.uhl@rwth-aachen.de>
> 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))
next prev parent reply other threads:[~2018-11-25 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-24 23:17 bug#33493: 26.1; New Version of Hunspell (1.7.0-1) brakes ispell.el Philipp Uhl
2018-11-25 16:10 ` Eli Zaretskii [this message]
2018-11-25 19:22 ` Philipp Uhl
2018-11-26 17:32 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83k1l1jfy0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=33493@debbugs.gnu.org \
--cc=philipp.uhl@rwth-aachen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.