changeset 108944:b9c2b845f2e6

* lisp/emacs-lisp/advice.el (ad-compile-function): Define warning-suppress-types before we let-bind it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 08 Jun 2010 21:18:31 -0400
parents 04a1a4b18129
children 998fccafba7a
files lisp/ChangeLog lisp/emacs-lisp/advice.el
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Jun 08 21:12:53 2010 -0400
+++ b/lisp/ChangeLog	Tue Jun 08 21:18:31 2010 -0400
@@ -1,5 +1,8 @@
 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* 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.
--- a/lisp/emacs-lisp/advice.el	Tue Jun 08 21:12:53 2010 -0400
+++ b/lisp/emacs-lisp/advice.el	Tue Jun 08 21:18:31 2010 -0400
@@ -2684,6 +2684,8 @@
       ;; 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.