aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/advice.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 36ae0e33884..b03dd3603bd 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -2698,7 +2698,10 @@ For that it has to be fbound with a non-autoload definition."
2698 ;; Need to turn off auto-activation 2698 ;; Need to turn off auto-activation
2699 ;; because `byte-compile' uses `fset': 2699 ;; because `byte-compile' uses `fset':
2700 (ad-with-auto-activation-disabled 2700 (ad-with-auto-activation-disabled
2701 (byte-compile function)))) 2701 (let ((symbol (make-symbol "advice-compilation")))
2702 (fset symbol (symbol-function function))
2703 (byte-compile symbol)
2704 (fset function (symbol-function symbol))))))
2702 2705
2703 2706
2704;; @@ Constructing advised definitions: 2707;; @@ Constructing advised definitions: