branch: externals/tempel commit 30def371d8282cfc60b1d90debd08f6240eba37c Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Add key-valid-p check --- tempel.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tempel.el b/tempel.el index 8fa72b65c6..a08ee38e03 100644 --- a/tempel.el +++ b/tempel.el @@ -700,7 +700,8 @@ If called interactively, select a template with `completing-read'." ;;;###autoload (defmacro tempel-key (key template-or-name &optional map) "Bind KEY to TEMPLATE-OR-NAME in MAP." - (keymap--check key) + (unless (key-valid-p key) + (error "Invalid key %s" key)) `(define-key ,(or map 'global-map) ,(key-parse key) ,(if (consp template-or-name) `(lambda ()