comparison lisp/emacs-lisp/advice.el @ 85729:bd2837f89a3b

(ad-compile-function): Use byte-compile-disable-warning.
author Glenn Morris <rgm@gnu.org>
date Sun, 28 Oct 2007 23:52:21 +0000
parents 91aa73da6526
children 107ccd98fa12 880960b70474
comparison
equal deleted inserted replaced
85728:2797206f47b8 85729:bd2837f89a3b
2673 ;; Need to turn off auto-activation 2673 ;; Need to turn off auto-activation
2674 ;; because `byte-compile' uses `fset': 2674 ;; because `byte-compile' uses `fset':
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))))))
2687 2684
2688 2685