aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-28 23:52:21 +0000
committerGlenn Morris2007-10-28 23:52:21 +0000
commite92d2ff73148df56fe4dc57b10480b73c56b184e (patch)
treebc15d912d34f811e9b082e727331ed8ae7d8c80c
parent7187be8be74f54adcfefb9d69ab3a00f4967841c (diff)
downloademacs-e92d2ff73148df56fe4dc57b10480b73c56b184e.tar.gz
emacs-e92d2ff73148df56fe4dc57b10480b73c56b184e.zip
(ad-compile-function): Use byte-compile-disable-warning.
-rw-r--r--lisp/emacs-lisp/advice.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 21136721e60..f9c778443b4 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -2675,12 +2675,9 @@ For that it has to be fbound with a non-autoload definition."
2675 (ad-with-auto-activation-disabled 2675 (ad-with-auto-activation-disabled
2676 (require 'bytecomp) 2676 (require 'bytecomp)
2677 (let ((symbol (make-symbol "advice-compilation")) 2677 (let ((symbol (make-symbol "advice-compilation"))
2678 (byte-compile-warnings 2678 (byte-compile-warnings byte-compile-warnings))
2679 (if (listp byte-compile-warnings) byte-compile-warnings
2680 byte-compile-warning-types)))
2681 (if (featurep 'cl) 2679 (if (featurep 'cl)
2682 (setq byte-compile-warnings 2680 (byte-compile-disable-warning 'cl-functions))
2683 (remq 'cl-functions byte-compile-warnings)))
2684 (fset symbol (symbol-function function)) 2681 (fset symbol (symbol-function function))
2685 (byte-compile symbol) 2682 (byte-compile symbol)
2686 (fset function (symbol-function symbol)))))) 2683 (fset function (symbol-function symbol))))))