[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get a list of correction from ispell
From: |
Eli Zaretskii |
Subject: |
Re: Get a list of correction from ispell |
Date: |
Fri, 10 Feb 2012 22:03:22 +0200 |
> Date: Fri, 10 Feb 2012 19:15:14 +0100
> From: Aurélien Aptel <aurelien.aptel+emacs@gmail.com>
>
> (lookup-words "maiso*") ;; maison, house in french
>
> Debugger entered--Lisp error: (error "egrep error: /bin/egrep:
> /usr/dict/words: No such file or directory")
> signal(error ("egrep error: /bin/egrep: /usr/dict/words: No such
> file or directory"))
> error("%s error: %s" "egrep" "/bin/egrep: /usr/dict/words: No such
> file or directory")
> [...]
>
>
> lookup-words wants a dictionary file, and without the optional
> argument it's using /usr/dict/words instead. How can I can a list of
> correction using ispell-current-dictionnary?
You can't. lookup-words invokes ispell in a way that cannot use your
usual dictionary. It needs a list of words instead. For the details,
read the man pages of Ispell the program (the `L' command in Ispell).
Just find somewhere a list of French words and put it in
/usr/dict/words; then the command will work.