From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: binding flyspell-correct-word to a key?
Date: Fri, 19 May 2006 09:41:45 -0600 [thread overview]
Message-ID: <e4kp13$lt8$1@sea.gmane.org> (raw)
In-Reply-To: <1148039913.844327.312220@u72g2000cwu.googlegroups.com>
emacs user wrote:
> would anyone happen to know how to bind flyspell-correct-word to a key
> under xterm with no X-windows? thanks... EU
You can't, because that command requires an event argument via
(interactive "e"), and the Emacs Lisp manual explains the `e' code:
The first or next mouse event in the key sequence that invoked the
command. More precisely, `e' gets events that are lists, so you
can look at the data in the lists. *Note Input Events::. No I/O.
You can use `e' more than once in a single command's interactive
specification. If the key sequence that invoked the command has N
events that are lists, the Nth `e' provides the Nth such event.
Events that are not lists, such as function keys and ASCII
characters, do not count where `e' is concerned.
Maybe you could define a new command that calls flyspell-correct-word
with a synthetic generated event, and then bind the new command to a
key. (The event is passed to mouse-set-point and flyspell-emacs-popup,
so it would have to satisfy whatever requirements/assumptions those
functions have.)
--
Kevin
next prev parent reply other threads:[~2006-05-19 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 11:58 binding flyspell-correct-word to a key? emacs user
2006-05-19 15:41 ` Kevin Rodgers [this message]
2006-05-19 18:45 ` David Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e4kp13$lt8$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).