]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve 'key-valid-p' docstring
authorRobert Pluim <rpluim@gmail.com>
Fri, 17 Jan 2025 08:44:32 +0000 (09:44 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:41:50 +0000 (18:41 +0100)
* lisp/keymap.el (key-valid-p): Add "RET", "<return>", and "C-m"
examples.

(Bug#75586)

(cherry picked from commit 0e3687e6006ea93603a032056c6af99a242c6af5)

lisp/keymap.el

index eb031d228dc14273549ab1903435a53620b870bc..dc9bd9a8e200e5fb7bae4fd96ff42f18e24a324c 100644 (file)
@@ -335,6 +335,9 @@ Here are some example of valid key sequences.
   \"C-c o\"       (a two-key sequence: the key `c' with the control modifier
                  followed by the key `o')
   \"H-<left>\"    (the cursor control key named \"left\" with the hyper modifier)
+  \"RET\"         (the \"return\" key, also available as \"C-m\")
+  \"<return>\"    (the \"<return>\" function key, which can be bound separately
+                 from \"RET\" on some systems)
   \"M-RET\"       (the \"return\" key with a meta modifier)
   \"C-M-<space>\" (the \"space\" key with both the control and meta modifiers)