Looking for a new convenient keybinding for a frequently used command I stumbled upon Ctrl-M which is the same as Return/Enter.
What is the point of this binding? Can it cause some problem if I overwrite it?
Looking for a new convenient keybinding for a frequently used command I stumbled upon Ctrl-M which is the same as Return/Enter.
What is the point of this binding? Can it cause some problem if I overwrite it?
ASCII control character Control M is a carriage-return character. It is return, and its ASCII name is RET. That's the reason why C-m in Emacs is RET.
In terminal mode (no graphic display) Emacs does not have a <return> (pseudo-)function key. There is only the RET key, also known as C-m.
In a graphic-display Emacs has both a <return> key and a RET (C-m) key. You can bind either of them to whatever command you like.
If <return> is not explicitly bound then when you use <return> the binding of RET takes effect.
This is for convenience - it's the same principle that lets key M act as key m if m is bound to a command and M is not explicitly bound to a command.
As @phils mentioned in a comment here, see also C-h i g (elisp)Function Keys.