Customized for emacs 24.3 on OS 10.9.