Hi, I think I have found and fixed this problem. It was caused by input events arriving to Emacs before the init code had been fully executed. It was fixed by using block_ and unblock_input() in ns_term_init. http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0392e241b844487261d4dfcccc9a442793e0a868 -- Anders