[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tempel 30def371d8 3/3: Add key-valid-p check
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tempel 30def371d8 3/3: Add key-valid-p check |
Date: |
Thu, 19 Jan 2023 00:58:38 -0500 (EST) |
branch: externals/tempel
commit 30def371d8282cfc60b1d90debd08f6240eba37c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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 ()