unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* spell checking a string in elisp code
@ 2012-08-28 10:04 Stefan Schlee
  2012-08-28 16:36 ` Jambunathan K
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Schlee @ 2012-08-28 10:04 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

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?

Thanks in advance

Stefan

[-- Attachment #2: Type: text/html, Size: 620 bytes --]

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

* Re: spell checking a string in elisp code
  2012-08-28 10:04 spell checking a string in elisp code Stefan Schlee
@ 2012-08-28 16:36 ` Jambunathan K
  2012-08-28 21:25   ` Tami
       [not found]   ` <1346220977.9904.YahooMailNeo@web125402.mail.ne1.yahoo.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Jambunathan K @ 2012-08-28 16:36 UTC (permalink / raw)
  To: Stefan Schlee; +Cc: help-gnu-emacs@gnu.org

Stefan Schlee <stefan_schlee@yahoo.com> writes:

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

-- 



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

* Re:  Re: spell checking a string in elisp code
  2012-08-28 16:36 ` Jambunathan K
@ 2012-08-28 21:25   ` Tami
       [not found]   ` <1346220977.9904.YahooMailNeo@web125402.mail.ne1.yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Tami @ 2012-08-28 21:25 UTC (permalink / raw)
  To: kjambunathan; +Cc: help-gnu-emacs


On 2012 August 28 Jambunathan K wrote:
> Stefan Schlee <stefan_schlee@yahoo.com> writes:

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



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

* Fw: spell checking a string in elisp code
       [not found]   ` <1346220977.9904.YahooMailNeo@web125402.mail.ne1.yahoo.com>
@ 2012-08-30 15:02     ` Stefan Schlee
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Schlee @ 2012-08-30 15:02 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]



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
>

-- 

[-- Attachment #2: Type: text/html, Size: 3358 bytes --]

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 10:04 spell checking a string in elisp code Stefan Schlee
2012-08-28 16:36 ` Jambunathan K
2012-08-28 21:25   ` Tami
     [not found]   ` <1346220977.9904.YahooMailNeo@web125402.mail.ne1.yahoo.com>
2012-08-30 15:02     ` Fw: " Stefan Schlee

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