]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker):
authorRichard M. Stallman <rms@gnu.org>
Thu, 22 Jan 1998 02:23:21 +0000 (02:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 22 Jan 1998 02:23:21 +0000 (02:23 +0000)
If compiler-macroexpand is defined, use it.

lisp/emacs-lisp/byte-opt.el

index be958e53abb51093d9dd1935be9a2fb2c0d57ee1..90154728f3404ddda9264107889159c4a4802434 100644 (file)
                    (setq form (macroexpand form
                                            byte-compile-macro-environment))))
           (byte-optimize-form form for-effect))
+
+         ;; Support compiler macros as in cl.el.
+         ((and (fboundp 'compiler-macroexpand)
+               (not (eq form
+                        (setq form (compiler-macroexpand form
+                                    byte-compile-macro-environment)))))
+          (byte-optimize-form form for-effect))
          
          ((not (symbolp fn))
           (or (eq 'mocklisp (car-safe fn)) ; ha!