I had the same problem with the keyboard keys creating emacs 24. The problem is the same with emacs 23. I fixed the emacs 24 code as follows to fix the problem. Not sure if this is a good solution, but it works well enough for me.
index 91f0cbb..d537ee3 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -87,6 +87,7 @@ static unsigned convert_ns_to_X_keysym[] = NSBeginFunctionKey, 0x58, NSSelectFunctionKey, 0x60, NSPrintFunctionKey, 0x61, + NSClearLineFunctionKey, 0x0B, NSExecuteFunctionKey, 0x62, NSInsertFunctionKey, 0x63, NSUndoFunctionKey, 0x65, @@ -134,6 +135,35 @@ static unsigned convert_ns_to_X_keysym[] = 0x1B, 0x1B }; +static unsigned convert_nskeypad_to_X_keysym[] = +{ + + NSLeftArrowFunctionKey, 0x51, + NSUpArrowFunctionKey, 0x52, + NSRightArrowFunctionKey, 0x53, + NSDownArrowFunctionKey, 0x54, + + 0x41, 0xAE, + 0x43, 0xAA, + 0x45, 0xAB, + 0x4B, 0xAF, + 0x4E, 0xAD, + 0x51, 0xBD, + 0x52, 0xB0, + 0x53, 0xB1, + 0x54, 0xB2, + 0x55, 0xB3, + 0x56, 0xB4, + 0x57, 0xB5, + 0x58, 0xB6, + 0x59, 0xB7, + 0x5B, 0xB8, + 0x5C, 0xB9, + +