Ask to revert buffer only if the buffer has been modified in Emacs.
Consistently test for XEmacs using (featurep 'xemacs) instead of trying to parse it out of the `emacs-version' variable.