(ad-compile-function):
Byte compile the function under another (uninterned) name.
This commit is contained in:
parent
38eba48567
commit
fe30e73fcd
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue