]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker):
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Dec 2002 19:52:46 +0000 (19:52 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Dec 2002 19:52:46 +0000 (19:52 +0000)
Optimize the remaining part of for-effect and/or expressions.

lisp/emacs-lisp/byte-opt.el

index 2e29e467d925595c12023dc314deca08d6b2cf1d..8a44ea020f3b2dc5fb9f9789f6d80cd9785f6897 100644 (file)
                     (byte-compile-log
                      "  all subforms of %s called for effect; deleted" form))
                 (and backwards
-                     (cons fn (nreverse backwards))))
+                     (cons fn (nreverse (mapcar 'byte-optimize-form backwards)))))
             (cons fn (mapcar 'byte-optimize-form (cdr form)))))
 
          ((eq fn 'interactive)
 
 (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))
       nil
     form))