Added support for Emacs and XEmacs