mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-16 17:19:41 +00:00
(ad-compile-function):
Byte compile the function under another (uninterned) name.
This commit is contained in:
parent
38eba48567
commit
fe30e73fcd
@ -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…
Reference in New Issue
Block a user