I added this function to my ~/.emacs file and run it by entering M-x my-turn-current-window-into-frame RET.
I added the following to my ~/.emacs file after that function:
(global-set-key (kbd "<f12>") 'my-turn-current-window-into-frame) I copied that line to *scratch* and evaluated it.
When I press F12, Emacs returns:
Symbol's function definition is void: my-turn-current-window-into-frame How can I configure a hot-key to run this function?
M-x my-turn-current-window-into-framestill works fine, right? Have you tried starting fromemacs -Q, so it's not something weird in your init file?