[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14490: Error in specman-mode.el

From: Stefan Monnier
Subject: bug#14490: Error in specman-mode.el
Date: Tue, 28 May 2013 13:18:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> ;; 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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]