aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-07-07 09:37:09 +0000
committerRichard M. Stallman2002-07-07 09:37:09 +0000
commit004b6f61b33da8969984cab97932262a9e56e460 (patch)
tree805029ea0eaca0f77133ad70903ae04b23c14d2e
parent8fd9c1745e9d76b93593464d7290d7beb9be192d (diff)
downloademacs-004b6f61b33da8969984cab97932262a9e56e460.tar.gz
emacs-004b6f61b33da8969984cab97932262a9e56e460.zip
(ad-compile-function): Disable cl-function warnings if cl is loaded.
-rw-r--r--lisp/emacs-lisp/advice.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 34e2a92ed37..1900dff4d6b 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -2698,7 +2698,14 @@ 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 (let ((symbol (make-symbol "advice-compilation"))) 2701 (require 'bytecomp)
2702 (let ((symbol (make-symbol "advice-compilation"))
2703 (byte-compile-warnings
2704 (if (listp byte-compile-warnings) byte-compile-warnings
2705 byte-compile-warning-types)))
2706 (if (featurep 'cl)
2707 (setq byte-compile-warnings
2708 (remq 'cl-functions byte-compile-warnings)))
2702 (fset symbol (symbol-function function)) 2709 (fset symbol (symbol-function function))
2703 (byte-compile symbol) 2710 (byte-compile symbol)
2704 (fset function (symbol-function symbol)))))) 2711 (fset function (symbol-function symbol))))))