Replace xemacsp with (featurep 'xemacs).