all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Get a list of correction from ispell
@ 2012-02-10 18:15 Aurélien Aptel
  2012-02-10 20:03 ` Eli Zaretskii
  2012-02-10 20:08 ` Peter Dyballa
  0 siblings, 2 replies; 3+ messages in thread
From: Aurélien Aptel @ 2012-02-10 18:15 UTC (permalink / raw
  To: help-gnu-emacs

Hi all,

I want to get a list of correction for a word (using the ispell-mode).
Note that Flyspell works correctly.

ispell-current-dictionary
=> "francais"

(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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Get a list of correction from ispell
  2012-02-10 18:15 Get a list of correction from ispell Aurélien Aptel
@ 2012-02-10 20:03 ` Eli Zaretskii
  2012-02-10 20:08 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2012-02-10 20:03 UTC (permalink / raw
  To: help-gnu-emacs

> 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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Get a list of correction from ispell
  2012-02-10 18:15 Get a list of correction from ispell Aurélien Aptel
  2012-02-10 20:03 ` Eli Zaretskii
@ 2012-02-10 20:08 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2012-02-10 20:08 UTC (permalink / raw
  To: Aurélien Aptel; +Cc: help-gnu-emacs


Am 10.2.2012 um 19:15 schrieb Aurélien Aptel:

> How can I can a list of correction using ispell-current-dictionnary?

You can try to customise the group "ispell". You can reach this from the Options menu. It's possible that ispell will use the customised alternate values when it can't find the proper ones.

Alternatively create hard or symbolic links for the files ispell expects!

--
Greetings

  Pete

There are very few jobs that actually require a penis or vagina. All other jobs should be open to everybody.
				– Florynce Kennedy




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-10 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10 18:15 Get a list of correction from ispell Aurélien Aptel
2012-02-10 20:03 ` Eli Zaretskii
2012-02-10 20:08 ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.