trancefer to Cocoa Emacs 24.3
refactoring