From: Eli Zaretskii <eliz@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 32319@debbugs.gnu.org
Subject: bug#32319: 27.0.50; flyspell-mode error on start
Date: Tue, 31 Jul 2018 18:33:51 +0300 [thread overview]
Message-ID: <834lgfpggw.fsf@gnu.org> (raw)
In-Reply-To: <87o9eoldcv.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Mon, 30 Jul 2018 12:42:24 -0700)
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Mon, 30 Jul 2018 12:42:24 -0700
>
>
> Turning on flyspell-mode started giving me an error a few days ago, on
> two different machines I use. Both are Arch linux, both running Emacs
> master.
>
> My only ispell customizations:
>
> (setq ispell-program-name (executable-find "hunspell"))
> (setq ispell-personal-dictionary "~/.aspell.en_US.pws")
>
> Starting flyspell-mode gives me:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> string-match("," nil 0)
> split-string(nil "," t)
> ispell-parse-hunspell-affix-file(nil)
> ispell-hunspell-fill-dictionary-entry(nil)
> ispell-start-process()
> ispell-init-process()
> ispell-buffer-local-words()
> ispell-accept-buffer-local-defs()
> flyspell-accept-buffer-local-defs(force)
> flyspell-mode-on()
>
> >From "emacs -Q", setting `ispell-program-name' to (executable-find
> "hunspell") (the first line of my customizations above) is sufficient to
> trigger the error.
You mean, just evaluating
(setq ispell-program-name (executable-find "hunspell"))
signals an error??
> `ispell-current-dictionary' seems to be nil during the whole process,
> which causes the eventual error.
Yes, and you need to find out why does that happen. FWIW, I cannot
reproduce the problem here. Is ispell-internal-change-dictionary
called when you start spell-checking? What if you manually set the
dictionary with "M-x ispell-change-dictionary"?
> The Hunspell version on Arch is "1.6.2", which is the value of
> `ispell-really-hunspell'.
Did you upgrade Hunspell lately?
If nothing gives a clue, I'm afraid you will have to step in a
debugger through the ispell.el initialization code and see what's
going wrong there.
next prev parent reply other threads:[~2018-07-31 15:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-30 19:42 bug#32319: 27.0.50; flyspell-mode error on start Eric Abrahamsen
2018-07-31 15:33 ` Eli Zaretskii [this message]
2018-08-01 2:03 ` Eric Abrahamsen
2018-08-01 6:00 ` Eli Zaretskii
2018-08-01 19:51 ` Eric Abrahamsen
2018-08-04 11:02 ` Eli Zaretskii
2018-08-05 5:21 ` Eric Abrahamsen
2018-08-11 7:36 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=834lgfpggw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=32319@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).