emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8df3a71c52: Doc fix; fix terminology in key binding functions


From: Stefan Kangas
Subject: master 8df3a71c52: Doc fix; fix terminology in key binding functions
Date: Mon, 27 Dec 2021 10:28:47 -0500 (EST)

branch: master
commit 8df3a71c526c28b17926f7b56860f9798ab6d933
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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.
---
 lisp/keymap.el | 8 ++++----
 lisp/subr.el   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisp/keymap.el b/lisp/keymap.el
index fd91689f88..734cbe89cd 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
diff --git a/lisp/subr.el b/lisp/subr.el
index b77afaca94..29f375884b 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -6549,7 +6549,7 @@ not a list, return a one-element list containing OBJECT."
   form)
 
 (defun define-keymap (&rest definitions)
-  "Create a new keymap and define KEY/DEFINITION pairs as key sequences.
+  "Create a new keymap and define KEY/DEFINITION pairs as key bindings.
 The new keymap is returned.
 
 Options can be given as keywords before the KEY/DEFINITION



reply via email to

[Prev in Thread] Current Thread [Next in Thread]