Mercurial > emacs
changeset 78627:e8ce4af3f42d
(byte-optimize-featurep): Also handle `sxemacs'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 23 Aug 2007 15:11:31 +0000 |
parents | 14c1feed4904 |
children | 29320ef98233 |
files | lisp/ChangeLog lisp/emacs-lisp/byte-opt.el |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Aug 23 03:27:16 2007 +0000 +++ b/lisp/ChangeLog Thu Aug 23 15:11:31 2007 +0000 @@ -1,3 +1,7 @@ +2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca> + + * emacs-lisp/byte-opt.el (byte-optimize-featurep): Also handle `sxemacs'. + 2007-08-22 Chong Yidong <cyd@stupidchicken.com> * image-mode.el (image-minor-mode): Use image-mode-text-map.
--- a/lisp/emacs-lisp/byte-opt.el Thu Aug 23 03:27:16 2007 +0000 +++ b/lisp/emacs-lisp/byte-opt.el Thu Aug 23 15:11:31 2007 +0000 @@ -1135,9 +1135,9 @@ (put 'featurep 'byte-optimizer 'byte-optimize-featurep) (defun byte-optimize-featurep (form) - ;; Emacs-21's byte-code doesn't run under XEmacs anyway, so we can - ;; safely optimize away this test. - (if (equal '((quote xemacs)) (cdr-safe form)) + ;; Emacs-21's byte-code doesn't run under XEmacs or SXEmacs anyway, so we + ;; can safely optimize away this test. + (if (member (cdr-safe form) '((quote xemacs) (quote sxemacs))) nil form))