]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-form-code-walker): Only call compiler-macroexpand if
authorRichard M. Stallman <rms@gnu.org>
Mon, 9 Feb 1998 00:19:00 +0000 (00:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 9 Feb 1998 00:19:00 +0000 (00:19 +0000)
the function has a cl-compiler-macro property.

lisp/emacs-lisp/byte-opt.el

index 64280a4d549f0ebf1c9a4f329894c672df9ce8f5..3453d1d71b6c03befd75b1d08c1b6492545fecc2 100644 (file)
 
          ;; Support compiler macros as in cl.el.
          ((and (fboundp 'compiler-macroexpand)
+               (symbolp (car-safe form))
+               (get (car-safe form) 'cl-compiler-macro)
                (not (eq form
                         (setq form (compiler-macroexpand form)))))
           (byte-optimize-form form for-effect))