I have a command that I would like to bind to multiple key sequences differing only in the final decimal digit (e.g.
C-. 1, ...,
C-. 9). The command needs to determine that final digit.
I would prefer not to have 10 distinct bindings, each passing a distinct argument to a shared implementation. So I am wondering whether emacs keeps around the event sequence that triggers a command. Surely the self-insert-command has such a capability (though of course it is written in C).