[Top][All Lists]

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

Re: key bindings for flyspell-mode that work on terminals

From: Juri Linkov
Subject: Re: key bindings for flyspell-mode that work on terminals
Date: Sat, 05 Nov 2005 14:32:07 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>   > I don't understand.  Use it for what?
> For flyspell-auto-correct-word

I believe M-TAB can be used in the same buffer for both
`flyspell-auto-correct-word' and `lisp-complete-symbol' by making it
context-sensitive: when point is on the word marked as misspelled,
M-TAB could call `flyspell-auto-correct-word', in any other part of
the buffer call `lisp-complete-symbol'.

This can be easily achieved by moving the M-TAB keybinding from
`flyspell-mode-map' to `flyspell-mouse-map'.

However, this has one problem: it will correct the word only to
the first variant.  But anyway using the same key to loop over all
successive corrections is not very convenient.  I think it's better
to bind M-TAB on the misspelled word to a command that creates the
*Completion* buffer with a list of corrections, in the same way
as `lisp-complete-symbol' works.  Alternatively, it could provide the
ispell interface for selecting the word with a digit offered in the
*Choices* buffer.

Juri Linkov

reply via email to

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