Cocoa emacs stuff.