>>>> "Reiner" == Reiner Steib
<reinersteib+gmane(a)imap.cc> writes:
Reiner> (when (featurep 'xemacs)
Reiner> xemacs-code)
> But what if I had code specifically for GNU emacs.
Reiner> (unless (featurep 'xemacs)
Reiner> emacs-code)
Reiner> (if (featurep 'xemacs)
Reiner> xemacs-code
Reiner> emacs-code)
What are the specific reason to use `when', if `if' exists? Just
convenience? (I also thought that `when' is more recent then `if')
>
> (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
Reiner> IMHO: No. The byte compiler of Emacs is able to ignore the
Reiner> (featurep 'xemacs) parts when compiling with Emacs. I
Reiner> don't know if XEmacs byte compiler has the same feature.
Ok, that is a interesting point.
> Or are there better solutions?
Reiner> Test for features (`featurep') , functions (`fboundp') or variables
Reiner> (`boundp') instead of versions.
Ok, thanks
Uwe