[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lisp interface to ispell ?
From: |
Teemu Likonen |
Subject: |
Re: lisp interface to ispell ? |
Date: |
Fri, 06 Nov 2009 22:05:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
On 2009-11-06 20:39 (+0100), Andreas Politz wrote:
> Does someone have a hack, or know a different package, in order to allow
> elisp access to spelling functions ? E.g. like
>
> (spell word language)
>
> which at least returns t or nil.
Something like this?
(defun my-ispell-string (word lang)
(with-temp-buffer
(insert word)
(call-process-region (point-min) (point-max)
"ispell" t t nil "-l" "-d" lang)
(if (= (point-min) (point-max))
t)))