GNU bug report logs - #34640
26.1; ispell nil reference error when dictionary not found

Previous Next

Package: emacs;

Reported by: Mark Diekhans <markd <at> ucsc.edu>

Date: Sun, 24 Feb 2019 18:34:01 UTC

Severity: normal

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 34640-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mark Diekhans <markd <at> ucsc.edu>
Cc: 34640-done <at> debbugs.gnu.org
Subject: Re: bug#34640: 26.1;
 ispell nil reference error when dictionary not found
Date: Fri, 08 Mar 2019 11:19:48 +0200
> Date: Sun, 24 Feb 2019 10:27:09 -0800
> From: Mark Diekhans <markd <at> ucsc.edu>
> BCC: Mark Diekhans <markd <at> ucsc.edu>,
> 
> On the first call to ispell-word, if ispell-set-spellchecker-params fails to find hunspell dictionaries on the first invocation it
> gives the useful error message:
>   "no default hunspell diectionary found"
> 
> On subsequence calls, it fails with
>    "Wrong type argument: stringp, nil"
> 
> call stack is
>   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()
>   ispell-word(nil nil nil t)
>   funcall-interactively(ispell-word nil nil nil t)
>   call-interactively(ispell-word nil nil)
>   command-execute(ispell-word)
> 
> This is caused by ispell-set-spellchecker-params setting
> ispell-last-program-name before it has successfully completed.
> 
> a patch is attached that fixes this problem, resulting in a correct
> error message on subsequence uses of ispell-word

Thanks, I installed this on the master branch.




This bug report was last modified 6 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.