From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: ispell gives "Wrong type argument: stringp, nil"
Date: Fri, 30 Dec 2005 00:03:56 +0100 [thread overview]
Message-ID: <bae4ddf8d840a850dba72ea7df0d80aa@Web.DE> (raw)
In-Reply-To: <nZmdnecY7chZsSneRVn-oQ@scnresearch.com>
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
next prev parent reply other threads:[~2005-12-29 23:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 6:42 ispell gives "Wrong type argument: stringp, nil" Jeff D. Hamann
2005-10-13 8:50 ` Peter Dyballa
[not found] ` <mailman.11175.1129195674.20277.help-gnu-emacs@gnu.org>
2005-10-13 16:42 ` Jeff D. Hamann
2005-10-13 23:11 ` Peter Dyballa
2005-12-27 6:55 ` Jeff D. Hamann
2005-12-27 12:26 ` Peter Dyballa
2005-12-28 18:30 ` Kevin Rodgers
[not found] ` <mailman.20694.1135794740.20277.help-gnu-emacs@gnu.org>
2005-12-29 18:36 ` Jeff D. Hamann
2005-12-29 23:03 ` Peter Dyballa [this message]
2005-12-30 22:16 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2005-12-27 6:49 Jeff D. Hamann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bae4ddf8d840a850dba72ea7df0d80aa@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).