Add keywords to generate and bind keys in repeat maps, for use with emacs' new repeat-mode. Heavily inspired by the syntax of define-repeat-map.el. Fix #964.
It's worth mentioning that I tried to implement an :enter keyword as well, which would set the repeat-map property of a command, but without binding that command in the keymap. But I discovered that commands like this (with a repeat-map property pointing at a keymap in which they are not themselves bound) don't seem to actually invoke the repeat map. I tried it with the standard, manual way of building a repeat map and that didn't work either, so I think this is a bug with repeat-mode (or a feature which I don't understand). :enter would probably be the rarest used keyword though, so I don' think this is a big problem, and it would be simple to add in future if need be.
Add keywords to generate and bind keys in repeat maps, for use with emacs' new
repeat-mode
. Heavily inspired by the syntax of define-repeat-map.el. Fix #964.It's worth mentioning that I tried to implement an
:enter
keyword as well, which would set therepeat-map
property of a command, but without binding that command in the keymap. But I discovered that commands like this (with arepeat-map
property pointing at a keymap in which they are not themselves bound) don't seem to actually invoke the repeat map. I tried it with the standard, manual way of building a repeat map and that didn't work either, so I think this is a bug with repeat-mode (or a feature which I don't understand).:enter
would probably be the rarest used keyword though, so I don' think this is a big problem, and it would be simple to add in future if need be.