--- Begin Message ---
Subject: |
ispell-complete-word fails |
Date: |
Fri, 13 Mar 2009 00:21:43 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
emacs -Q
Type "foo", followed by M-x ispell-complete-word:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
looking-at(nil)
ispell-get-word(nil "\\*")
ispell-complete-word(nil)
call-interactively(ispell-complete-word t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
This happens because in ispell-get-word
(if (not (looking-at ispell-casechars))
has ispell-casechars = nil. This is because (ispell-get-casechars)
returns nil; and this is because ispell-dictionary-alist is now nil by
default.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#2654: ispell-complete-word fails |
Date: |
Fri, 13 Mar 2009 17:21:13 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Mar 13, 2009 at 12:21:43AM -0400, Glenn Morris wrote:
>
> emacs -Q
>
> Type "foo", followed by M-x ispell-complete-word:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> looking-at(nil)
> ispell-get-word(nil "\\*")
> ispell-complete-word(nil)
> call-interactively(ispell-complete-word t nil)
> execute-extended-command(nil)
> call-interactively(execute-extended-command nil nil)
>
> This happens because in ispell-get-word
>
> (if (not (looking-at ispell-casechars))
>
> has ispell-casechars = nil. This is because (ispell-get-casechars)
> returns nil; and this is because ispell-dictionary-alist is now nil by
> default.
Thanks for noticing and debugging,
Committed a fix that initializes spellchecker parameters also from
(ispell-get-word)
--
Agustin
--- End Message ---