help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: precedence of keymaps


From: Andreas Politz
Subject: Re: precedence of keymaps
Date: Tue, 21 Oct 2008 23:05:14 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Xah wrote:
On Oct 21, 9:32 am, Andreas Politz <poli...@fh-trier.de> wrote:
Hi,

some time ago I wrote a little global minor mode,
which defines a couple of keys for resizing, moving windows etc.
The idea is, that every key which is not bound in this mode
is bound to "exit-mode, restuff event".

humm? i don't quite understand what u mean ... exit-mode and restuff
event?


Like the repeat `mode', where you press 'y' and it repeats the last command,
but every other key works normally.
When a keymap has a (t . some-command) cons, every key not mapped calls
some-command. If this some-command turns of the keymap (the mode) and
pushes the event, which was not mapped, back in the event loop, it's like
auto-shut-down (mode wise), might call it a mini-mode.

-ap


reply via email to

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