Technicality
· 7TH OF FEBRUARY, THE YEAR 2005ACTIVATING THE NUMERIC KEYPAD UNDER EMACS IN PUTTY
I don’t know why emacs seems to randomly ignore keys, or assigns them random functions or characters that never fail to perplex and confuse. My latest problem was the fact that my numeric keypad didn’t work in emacs when I was using PuTTY, probably due to some weird terminal emulation hooha. After several failed attempts at following advice online, I found this thread and pieced together the following in my .emacs file:
(global-set-key "\eOp" "0")
(global-set-key "\eOq" "1")
(global-set-key "\eOr" "2")
(global-set-key "\eOs" "3")
(global-set-key "\eOt" "4")
(global-set-key "\eOu" "5")
(global-set-key "\eOv" "6")
(global-set-key "\eOw" "7")
(global-set-key "\eOx" "8")
(global-set-key "\eOy" "9")
(global-set-key "\eOl" "+")
(global-set-key "\eOQ" "/")
(global-set-key "\eOR" "*")
(global-set-key "\eOS" "-")
(global-set-key "\eOn" ".")
Note the \e is LISP for the escape key. I was able to suss out how emacs was interpretting different keystrokes with the C-h l command.

ONE COMMENT
Thanks for that tip.