From: Richard M. Stallman Date: Tue, 11 Dec 2001 06:07:07 +0000 (+0000) Subject: (ad-compile-function): X-Git-Tag: ttn-vms-21-2-B4~17806 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fe30e73fcd14e37ac5cb8581e4b43ef97b23f386;p=emacs.git (ad-compile-function): Byte compile the function under another (uninterned) name. --- 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." ;; 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: