GNU bug report logs - #14490
Error in specman-mode.el

Previous Next

Package: emacs;

Reported by: Ethan Berger <eberger <at> tilera.com>

Date: Tue, 28 May 2013 16:25:01 UTC

Severity: wishlist

Merged with 14458

Found in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Ethan Berger <eberger <at> tilera.com>
Cc: 14490 <at> debbugs.gnu.org
Subject: bug#14490: Error in specman-mode.el
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




This bug report was last modified 11 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.