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

From: Manuel Uberti <[email-masked]>
Date: Thu, 16 Jan 2025 17:39:15 +0100

On 16/01/25 17:23, Robert Pluim wrote:
> 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)

Nice, yes. I'd say "separately" instead of "seperately", but other than
that it looks good to me.

Thanks!

-- 
Manuel Uberti
https://manueluberti.eu