this-command-keys
and this-command-keys-vector
return the entire key sequence that fired the current command. However, such sequence will contain any prefix argument, too. Is there a function or variable - let's call it this-command-key-binding
- to get just the key sequence for the command, without any prefix, so that (key-binding (this-command-binding))
returns the same value as this-command
, even in the presence of a prefix argument?
Asked
Active
Viewed 258 times
7

Gilles 'SO- stop being evil'
- 21,702
- 4
- 53
- 89

Eleno
- 1,428
- 11
- 17