GNU bug report logs - #15903
24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil)

Previous Next

Package: emacs;

Reported by: Vladimir Lomov <lomov.vl <at> gmail.com>

Date: Fri, 15 Nov 2013 15:18:02 UTC

Severity: normal

Found in version 24.3.50

Done: Agustin Martin <agustin.martin <at> hispalinux.es>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Agustin Martin <agustimartin <at> gmail.com>
To: Vladimir Lomov <lomov.vl <at> gmail.com>
Cc: 15903 <at> debbugs.gnu.org
Subject: bug#15903: 24.3.50; Fix small issue with ispell-hunspell when dictionary is set to default (nil)
Date: Sat, 16 Nov 2013 12:43:02 +0100
[Message part 1 (text/plain, inline)]
2013/11/15 Vladimir Lomov <lomov.vl <at> gmail.com>

> --text follows this line--
>
> Hello,
> according to variable 'ispell-dictionary-base-alist' defined in
> 'ispell.el' if 'ispell-dictionary' is nil then it is considered as
> default value for dictionary. Unfortunately, when hunspell is used as
> ispell program function 'ispell-parse-hunspell-affix-file' fails because
> it doesn't expect nil as argument.
>
> I propose small and simple patch. I checked it starting emacs as:
>   emacs -Q
> and evaluating in *scratch*:
>   (setq ispell-program-name "hunspell")
>   (setq ispell-really-hunspell t)
> after that I run 'M-$' while point is on first 's' of
>   (message)
>
> In minibuffer I see
>   MESSAGE is correct
>
> Without this patch the same steps lead to message
>   ispell-phaf: No matching entry for nil.
>

Hi,

Cannot reproduce it here. By the way, once initialized for hunspell
ispell.el provides a match for default (nil) value, here

(nil [[:alpha:]] [^[:alpha:]] ['] nil (-B) nil utf-8)

Regards,

-- 
Agustin
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 241 days ago.

Previous Next


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