diff options
| author | Richard M. Stallman | 2001-12-11 06:07:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-11 06:07:07 +0000 |
| commit | fe30e73fcd14e37ac5cb8581e4b43ef97b23f386 (patch) | |
| tree | 1e8931f3bd21ddbeeb9bbce366bbef980edea1b5 | |
| parent | 38eba48567d1d45803af42fe4728c9c4814fae37 (diff) | |
| download | emacs-fe30e73fcd14e37ac5cb8581e4b43ef97b23f386.tar.gz emacs-fe30e73fcd14e37ac5cb8581e4b43ef97b23f386.zip | |
(ad-compile-function):
Byte compile the function under another (uninterned) name.
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 5 |
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: |