Improve 'key-valid-p' docstring
authorRobert Pluim <rpluim@gmail.com>
Fri, 17 Jan 2025 08:44:32 +0000 (09:44 +0100)
committerRobert Pluim <rpluim@gmail.com>
Mon, 20 Jan 2025 16:26:11 +0000 (17:26 +0100)
* lisp/keymap.el (key-valid-p): Add "RET", "<return>", and "C-m"
examples.

(Bug#75586)

lisp/keymap.el

index f74a84e88067e0f7dd659511007a8c0bd020d438..b2c7321a1d54dd2f2c86cdb38f00524b774e80a6 100644 (file)
@@ -343,6 +343,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)