Subject: bug#75586: 31.0.50; Cannot bind <C-m> with keymap-global-set

From: Robert Pluim <[email-masked]>
Date: Thu, 16 Jan 2025 17:23:47 +0100

>>>>> On Thu, 16 Jan 2025 15:57:02 +0100, Manuel Uberti <[email-masked]> said:

    Manuel> Maybe the `key-valid-p` documentation?

Something like this?

diff --git a/lisp/keymap.el b/lisp/keymap.el
index f74a84e8806..c55c3b44ac9 100644
--- a/lisp/keymap.el
+++ b/lisp/keymap.el
@@ -343,6 +343,9 @@ key-valid-p
   \"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 seperately
+                 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)