[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ispell gives "Wrong type argument: stringp, nil"
From: |
Peter Dyballa |
Subject: |
Re: ispell gives "Wrong type argument: stringp, nil" |
Date: |
Fri, 30 Dec 2005 00:03:56 +0100 |
Am 29.12.2005 um 19:36 schrieb Jeff D. Hamann:
(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)
You're doing much more than's needed. Why introduce trouble with
flyspell? First make ispell work, then you can make your life
complicated!
I wouldn't use the .hash extension -- but I always worked on UNIX with
ispell.
A reasonable approach would be to unset (comment) all these. In Emacs
you can find in the Tools menu the item 'Spell Checking' which leads to
another menu. It contains 'Change Dictionary...'. Press it. In
minibuffer you will asked to enter a name, better press <SPC>. A
*Completions* buffer will open. There you'll find the names of the
dictionaries known on your system. Choose one, maybe the right one.
Change to the *Messages* buffer. You will find your choice there too.
All you need to record in .emacs is this dictionary's name.
If you don't see anything in the *Completions* buffer you will have to
set some options to tell the ispell programme where to find these
dictionaries. But I think you're behind this stage ...
Make it simple! Go one step after the after! Once ispell works you can
start debugging flyspell ...
My settings are:
(setq ispell-dictionary "german8")
(setq ispell-program-name "ispell")
; (setq ispell-program-name "aspell")
(if (string= "aspell" ispell-program-name)
(progn
; (setq ispell-extra-args "--norm-form=comp --norm-required
--run-together")
(setq ispell-dictionary "deutsch")
(set-default 'ispell-local-dictionary ispell-dictionary);"deutsch")
(add-hook 'TeX-language-en-hook (function (lambda ()
(ispell-change-dictionary "british"))))
(add-hook 'TeX-language-de-hook (function (lambda ()
(ispell-change-dictionary ispell-dictionary))));"deutsch"))))
(message "Alles für «a»spell")
)
(setq ispell-dictionary "german8")
(add-hook 'TeX-language-en-hook (function (lambda ()
(ispell-change-dictionary "british"))))
(add-hook 'TeX-language-de-hook (function (lambda ()
(ispell-change-dictionary "deutsch8"))))
(message "Alles für »i«spell")
)
--
Greetings
Pete
"A lot of people mistake a short memory for a clear conscience."
Doug Larson
- ispell gives "Wrong type argument: stringp, nil", Jeff D. Hamann, 2005/12/27
- Re: ispell gives "Wrong type argument: stringp, nil", Jeff D. Hamann, 2005/12/27
- Re: ispell gives "Wrong type argument: stringp, nil", Peter Dyballa, 2005/12/27
- Re: ispell gives "Wrong type argument: stringp, nil", Kevin Rodgers, 2005/12/28
- Message not available
- Re: ispell gives "Wrong type argument: stringp, nil", Jeff D. Hamann, 2005/12/29
- Re: ispell gives "Wrong type argument: stringp, nil",
Peter Dyballa <=
- Re: ispell gives "Wrong type argument: stringp, nil", Kevin Rodgers, 2005/12/30