I have tried to add global key-bindings to Emacs interactively via M-x global-set-key by following the guidelines in the Emacs Manual. When I add a keybinding though there is no confirmation prompt so that I can confirm binding the key I want. Yet the Manual states "After you press the key, a message ... appears so that you can confirm that you are binding the key you want." (https://www.gnu.org/software/emacs/manual/html_node/emacs/Rebinding.html)
If I then exit Emacs and reopen it, the global-key I have defined interactively does not work across sessions. Is this a bug? I have tried this without my default init and also in two versions of Emacs (25,26)
emacs -Q
(no init file). Say what you see at each step and what you expected to see instead.M-x report-emacs-bug
. Note that, as @heikki points out, you get the message only when you useglobal-set-key
interactively, e.g.,M-x global-set-key
.