[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: identifying meta-key bound functions from last-command-char?
From: |
Stefan Monnier |
Subject: |
Re: identifying meta-key bound functions from last-command-char? |
Date: |
Tue, 26 Feb 2008 21:10:56 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> as i see it, the purpose is not too obscure or unusual: deliberately
> identifying a key binding for user-entered keys from within a handler
> that's intervening in the command loop, eg, on pre-command-hook,
> overlay modification-hooks, or something like that. last-command-char
> / last-command-event is the only data structure i found for getting
> the input, and the only details about using that are very brief, in
> 21.4, _Information from the Command Loop_.
So maybe you'd rather use (key-binding (this-command-keys-vector)) so it
also works for commands bound to multi-key sequences.
Stefan