From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jeff D. Hamann" Newsgroups: gmane.emacs.help Subject: Re: ispell gives "Wrong type argument: stringp, nil" Date: Thu, 29 Dec 2005 10:36:52 -0800 Message-ID: References: <97a2af2815ec71310a810b7e405fd315@Web.DE> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135881546 25327 80.91.229.2 (29 Dec 2005 18:39:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2005 18:39:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 19:38:59 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Es2fy-0001Vh-SZ for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 19:38:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Es2hK-0006wq-Jc for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 13:40:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scnresearch.com!news.scnresearch.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 29 Dec 2005 12:36:52 -0600 Original-Newsgroups: gnu.emacs.help X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response Original-Lines: 64 Original-NNTP-Posting-Host: 69.59.200.239 X-AuthenticatedUsername: NoAuthUser Original-X-Trace: sv3-Hg4DNEOV+45udzpFP+tzKIxcYJbghMsyxg2iwFttABKBCsyHPOcHGr9svtnfAaPaNrJSlR42WZnUhve!i8AYmf/7+b1Vd/FXAJnBd8SETYbJDA0nG1n/lVvZvhBOq0+JnIdDTb9Enp/1hNG+cAAQdbrZ93Bf!ymdMotHDcw== Original-X-Complaints-To: abuse@scnresearch.com X-DMCA-Complaints-To: abuse@scnresearch.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:136670 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32289 Archived-At: So when I added (and I rarely mess with my .emacs file) the following line: (add-hook 'tex-mode-hook (function (lambda () (setq ispell-parser 'tex)))) (setq ispell-dictionary "C:/ispell/dic/american.hash") (add-hook 'text-mode-hook (lambda () (flyspell-mode 1))) ;; set something... (assoc ispell-dictionary ispell-dictionary-alist) I still got the same results... 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) ugh..... am I doing something totally lame-o or is this a bug? Jeff. "Kevin Rodgers" <> wrote in message news:mailman.20694.1135794740.20277.help-gnu-emacs@gnu.org... > 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 > > >