help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ispell gives "Wrong type argument: stringp, nil"


From: Kevin Rodgers
Subject: Re: ispell gives "Wrong type argument: stringp, nil"
Date: Wed, 28 Dec 2005 11:30:17 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Peter Dyballa wrote:
> Am 27.12.2005 um 07:55 schrieb Jeff D. Hamann:
>
>> With ispell (3.2.02 from
>> http://www.fsci.fuk.kindai.ac.jp/aftp/pub/ptex/utils/ ) yields,
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>   looking-at(nil)
>>   ispell-get-word(nil)
>>   ispell-word(nil nil nil)
>>   call-interactively(ispell-word)
>
>
> Here obviously the function looking-at() receives something bad:
>
>     looking-at is a built-in function in `C source code'.
>     (looking-at regexp)
>
>     Return t if text after point matches regular expression regexp.
>     This function modifies the match data that `match-beginning',
>     `match-end' and `match-data' access; save and restore the match
>     data if you want to preserve them.
>
> Could be you did not set up ispell-dictionary, ispell-program-name,
> ispell-extra-args, or ispell-local-dictionary-alist in case
> ispell-dictionary-alist is not sufficient?

That seems likely: ispell-get-word calls looking-at several times, with
the result of calling ispell-get-casechars and ispell-get-otherchars as
the REGEXP.  Those functions in turn depend on ispell-dictionary having
been set:  (assoc ispell-dictionary ispell-dictionary-alist)

--
Kevin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]