summaryrefslogtreecommitdiff
path: root/lisp/keymap.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-27 16:24:18 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-27 16:24:18 +0100
commit8df3a71c526c28b17926f7b56860f9798ab6d933 (patch)
tree9de548b571d9ec5ef551ac0fca8f5d75a541a77c /lisp/keymap.el
parentcaa1699264e583d9703dd47e6162c6386775915f (diff)
downloademacs-8df3a71c526c28b17926f7b56860f9798ab6d933.tar.gz
Doc fix; fix terminology in key binding functions
* lisp/keymap.el (keymap-set, key-valid-p): * lisp/subr.el (define-keymap): Doc fix; improve terminology.
Diffstat (limited to 'lisp/keymap.el')
-rw-r--r--lisp/keymap.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/keymap.el b/lisp/keymap.el
index fd91689f887..734cbe89cd1 100644
--- a/lisp/keymap.el
+++ b/lisp/keymap.el
@@ -38,7 +38,7 @@
(byte-compile-warn "Invalid `kbd' syntax: %S" key))))
(defun keymap-set (keymap key definition)
- "Set key sequence KEY to DEFINITION in KEYMAP.
+ "Set KEY to DEFINITION in KEYMAP.
KEY is a string that satisfies `key-valid-p'.
DEFINITION is anything that can be a key's definition:
@@ -295,9 +295,9 @@ See `kbd' for a descripion of KEYS."
res))))
(defun key-valid-p (keys)
- "Say whether KEYS is a valid `kbd' sequence.
-A `kbd' sequence is a string consisting of one and more key
-strokes. The key strokes are separated by a space character.
+ "Say whether KEYS is a valid key.
+A key is a string consisting of one or more key strokes.
+The key strokes are separated by a space character.
Each key stroke is either a single character, or the name of an
event, surrounded by angle brackets. In addition, any key stroke