Subject: Re: bug#14490: Error in specman-mode.el

From: Stefan Monnier <[email-masked]>
Date: Tue, 28 May 2013 13:18:55 -0400

> ;; emacs or xemacs
> (if (or (string-match "Lucid" emacs-version)
>         (string-match "XEmacs" emacs-version))
>     (setq specman-emacs-kind 'xemacs)
>   (setq specman-emacs-kind 'emacs))

BTW, the standard recommended way to test is (featurep 'xemacs) and
rather than store the result in a variable, it's better to repeat the
test everywhere you need it, because the compiler will handle it more
efficiently (whereas if it's stored in a variable, the compiler won't be
able to tell that you'll never change the variable).

        Stefan