From: Stefan Monnier Date: Wed, 9 Jun 2010 01:18:31 +0000 (-0400) Subject: * lisp/emacs-lisp/advice.el (ad-compile-function): X-Git-Tag: emacs-pretest-23.2.90~139^2~138 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=989bc97f04f8143a7ab51088f9861da8d5df45f1;p=emacs.git * lisp/emacs-lisp/advice.el (ad-compile-function): Define warning-suppress-types before we let-bind it. Fixes: debbugs:6275 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 57115bba400..d193663ed09 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-06-09 Stefan Monnier + * emacs-lisp/advice.el (ad-compile-function): + Define warning-suppress-types before we let-bind it (bug#6275). + * vc-dispatcher.el: Rename mode-line-hook to vc-mode-line-hook; declare it, make it buffer-local and permanent-local (bug#6324). (vc-resynch-window): Adjust name. diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 17f2ed53ba5..9267bc8ac91 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el @@ -2684,6 +2684,8 @@ For that it has to be fbound with a non-autoload definition." ;; because `byte-compile' uses `fset': (ad-with-auto-activation-disabled (require 'bytecomp) + (require 'warnings) ;To define warning-suppress-types + ;before we let-bind it. (let ((symbol (make-symbol "advice-compilation")) (byte-compile-warnings byte-compile-warnings) ;; Don't pop up windows showing byte-compiler warnings.