emacs-pretest-bug
[Top][All Lists]
Advanced

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

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


From: Stefan Monnier
Subject: Re: key bindings for flyspell-mode that work on terminals
Date: Mon, 07 Nov 2005 11:08:56 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> However, this has one problem: it will correct the word only to
>> the first variant.
>> 
>> Is that because the text property keymap will go away when the word
>> becomes correctly spelled?

> Yes, the overlay with the keymap will go away after the word is
> fixed with first M-TAB.

>> It should be easy to fix the command to read the next event, and if
>> the next event is another M-TAB, it would repeat.

> I think this would work.  Dan, what do you think?

All solutions based on reading the next event have the usual problems that
they interact poorly with post-command-hooks, input methods,
key-translation-map, function-key-map, ...

Better would be a hack that sets a transient minor mode (with M-TAB bound
appropriately) and adds a pre-command-hook which disables the minor mode as
soon as we use something else than M-TAB.


        Stefan




reply via email to

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