]> git.eshelyaron.com Git - emacs.git/commitdiff
(ad-compile-function): Byte compile the function under another
authorEli Zaretskii <eliz@gnu.org>
Thu, 13 Dec 2001 07:33:56 +0000 (07:33 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 13 Dec 2001 07:33:56 +0000 (07:33 +0000)
(uninterned) name.

lisp/emacs-lisp/advice.el

index c13bff9e7cc1d0e153c3afaf7dc0b36a8f957c4b..79b4764da74155c8da9d5cf79dc639e8ed4ce7fa 100644 (file)
@@ -2698,7 +2698,10 @@ For that it has to be fbound with a non-autoload definition."
       ;; Need to turn off auto-activation
       ;; because `byte-compile' uses `fset':
       (ad-with-auto-activation-disabled
-       (byte-compile function))))
+       (let ((symbol (make-symbol "advice-compilation")))
+        (fset symbol (symbol-function function))
+        (byte-compile symbol)
+        (fset function (symbol-function symbol))))))
 
 
 ;; @@ Constructing advised definitions: