From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: binding flyspell-correct-word to a key? Date: Fri, 19 May 2006 20:45:51 +0200 Organization: disorganized Message-ID: <87u07lc0ps.fsf@robotron.kosmorama> References: <1148039913.844327.312220@u72g2000cwu.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148064772 31448 80.91.229.2 (19 May 2006 18:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 18:52:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 19 20:52:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FhA5f-0001Ka-JC for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 20:52:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhA5f-0003GN-4v for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 14:52:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FhA5O-00036w-Ve for help-gnu-emacs@gnu.org; Fri, 19 May 2006 14:52:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FhA5M-00033U-VD for help-gnu-emacs@gnu.org; Fri, 19 May 2006 14:52:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FhA5M-00033H-Q9 for help-gnu-emacs@gnu.org; Fri, 19 May 2006 14:52:28 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FhA8j-0003ON-QN for help-gnu-emacs@gnu.org; Fri, 19 May 2006 14:55:58 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FhA54-0001DU-II for help-gnu-emacs@gnu.org; Fri, 19 May 2006 20:52:10 +0200 Original-Received: from e178013202.adsl.alicedsl.de ([85.178.13.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 May 2006 20:52:10 +0200 Original-Received: from david.hansen by e178013202.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 May 2006 20:52:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178013202.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:CEiPKgVqpeIJV+CokCLQYmRPZyc= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35160 Archived-At: On Fri, 19 May 2006 09:41:45 -0600 Kevin Rodgers wrote: > 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: > > [...] > > 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, or just use ,----[ C-h f flyspell-auto-correct-word RET ] | flyspell-auto-correct-word is an interactive compiled Lisp function in `flyspell.el'. | It is bound to C-., M-TAB. | (flyspell-auto-correct-word) | | Correct the current word. | This command proposes various successive corrections for the current word. | `---- David