From fe30e73fcd14e37ac5cb8581e4b43ef97b23f386 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 11 Dec 2001 06:07:07 +0000 Subject: [PATCH] (ad-compile-function): Byte compile the function under another (uninterned) name. --- lisp/emacs-lisp/advice.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 36ae0e3388..b03dd3603b 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." ;; 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: -- 2.20.1