unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* using ispell to check a word under the mouse pointer
@ 2003-06-30 19:02 Robin Norwood
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Norwood @ 2003-06-30 19:02 UTC (permalink / raw)


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

Hi,

I'm trying to get ispell to spell check a word under the mouse pointer
after a mouse click.  I have in my .emacs:


;; ispell
(global-set-key [(M-S-mouse-3)] 'ispell-word)


Which launches ispell, but checks the word at or before the insertion
point/cursor...which is correct, according to the docs for
ispell-word.

Is there a '-mouse' version of ispell-word available, or some other
fanciness to get this to work?

GNU Emacs 21.2.1
ispell.el 3.6 - 01/07/2003

To add a second ispell question, I'm using ispell-message to
spell check messages before they are sent - it does a good job ignoring
headers and quotes, but when forwarding mail in Gnus (C-c-C-f), the
message I am forwarding is enclosed in:


[-- Attachment #2: Type: message/rfc822, Size: 62 bytes --]




[-- Attachment #3: Type: text/plain, Size: 64 bytes --]



It would be nice if ispell would ignore everything in between 

[-- Attachment #4: Type: text/plain, Size: 22 bytes --]

and MIME-Version: 1.0

[-- Attachment #5: Type: text/plain, Size: 211 bytes --]

, and just check any text I've added above or below.  Any
idea why it doesn't do this?

Thanks,

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching

[-- Attachment #6: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: using ispell to check a word under the mouse pointer
       [not found] <mailman.8916.1057004434.21513.help-gnu-emacs@gnu.org>
@ 2003-06-30 20:51 ` Kai Großjohann
  2003-06-30 21:51   ` Robin Norwood
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2003-06-30 20:51 UTC (permalink / raw)


Robin Norwood <rnorwood@redhat.com> writes:

> I'm trying to get ispell to spell check a word under the mouse pointer
> after a mouse click.  I have in my .emacs:
>
>
> ;; ispell
> (global-set-key [(M-S-mouse-3)] 'ispell-word)

(defun robin-ispell-word-mouse (e)
  (interactive "e")
  (mouse-set-point e)
  (ispell-word))

-- 
~/.signature

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

* Re: using ispell to check a word under the mouse pointer
  2003-06-30 20:51 ` Kai Großjohann
@ 2003-06-30 21:51   ` Robin Norwood
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Norwood @ 2003-06-30 21:51 UTC (permalink / raw)
  Cc: help-gnu-emacs

kai.grossjohann@gmx.net (Kai Großjohann) writes:

> Robin Norwood <rnorwood@redhat.com> writes:
> 
> > I'm trying to get ispell to spell check a word under the mouse pointer
> > after a mouse click.  I have in my .emacs:
> >
> >
> > ;; ispell
> > (global-set-key [(M-S-mouse-3)] 'ispell-word)
> 
> (defun robin-ispell-word-mouse (e)
>   (interactive "e")
>   (mouse-set-point e)
>   (ispell-word))

Delightful!  That works like a charm, thanks!

BTW, I notice that your signature is:

~/.signature

Is that intentional?  I can't quite tell if it's a misconfiguration,
or you're being clever.  :-)

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching

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

end of thread, other threads:[~2003-06-30 21:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-30 19:02 using ispell to check a word under the mouse pointer Robin Norwood
     [not found] <mailman.8916.1057004434.21513.help-gnu-emacs@gnu.org>
2003-06-30 20:51 ` Kai Großjohann
2003-06-30 21:51   ` Robin Norwood

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