help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: spell checking a string in elisp code


From: Stefan Schlee
Subject: Fw: spell checking a string in elisp code
Date: Thu, 30 Aug 2012 08:02:29 -0700 (PDT)


Thank you for your quick reply.  As far as I understand `ispell-word´ only works for words in a buffer.  I want to check the spelling of a string referred to from a variable form within elisp code.


> Hello dear list!
>
> I am posed with the problem to look up strings from within my elisp
> code in one of the dictionaries that emacs uses. There used to be a
> function 'spell-string' but the spell-packages is obsoleted and the
> build in help system refers me to 'ispell'. But I cannot find an
> equivalent function in the 'ispell' package. Does any one know a
> solution?

May be this?

,----[ C-h k M-$ ]
| M-$ runs the command ispell-word, which is an interactive autoloaded
| compiled Lisp function in `ispell.el'.
|
| It is bound to M-$, <menu-bar> <tools> <spell> <ispell-word>.
|
| (ispell-word &optional FOLLOWING QUIETLY CONTINUE REGION)
|
| Check spelling of word under or before the cursor.
| If the word is not found in dictionary, display possible corrections
| in a window allowing you to choose one.
|
| If optional argument FOLLOWING is non-nil or if `ispell-following-word'
| is non-nil when called interactively, then the following word
| (rather than preceding) is checked when the cursor is not over a word.
| When the optional argument QUIETLY is non-nil or `ispell-quietly' is non-nil
| when called interactively, non-corrective messages are suppressed.
|
| With a prefix argument (or if CONTINUE is non-nil),
| resume interrupted spell-checking of a buffer or region.
|
| Interactively, in Transient Mark mode when the mark is active, call
| `ispell-region' to check the active region for spelling errors.
|
| Word syntax is controlled by the definition of the chosen dictionary,
| which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'.
|
| This will check or reload the dictionary.  Use M-x ispell-change-dictionary
| or M-x ispell-region to update the Ispell process.
|
| Return values:
| nil          word is correct or spelling is accepted.
| 0            word is inserted into buffer-local definitions.
| "word"        word corrected from word list.
| ("word" arg)  word is hand entered.
| quit          spell session exited.
|
| [back]
`----



> Thanks in advance
>
> Stefan
>

--





reply via email to

[Prev in Thread] Current Thread [Next in Thread]