Improve 'key-valid-p' docstring

* lisp/keymap.el (key-valid-p): Add "RET", "<return>", and "C-m"
examples.

(Bug#75586)
This commit is contained in:
Robert Pluim 2025-01-17 09:44:32 +01:00
parent 9878092d2b
commit 0e3687e600

View 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)