changeset 107152:34e2c3832e08

(ad-compile-function): Suppress byte-compiler warnings, since it is annoying for the user to see them each time he runs the code.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 15 Feb 2010 14:55:51 -0500
parents 7e66e7efd47d
children 2c62b10c201b
files lisp/ChangeLog lisp/emacs-lisp/advice.el
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Feb 15 16:04:53 2010 +0100
+++ b/lisp/ChangeLog	Mon Feb 15 14:55:51 2010 -0500
@@ -1,3 +1,9 @@
+2010-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* emacs-lisp/advice.el (ad-compile-function): Suppress byte-compiler
+	warnings, since it is annoying for the user to see them each time he
+	runs the code.
+
 2010-02-15  Michael Albinus  <michael.albinus@gmx.de>
 
 	* net/tramp.el (tramp-process-actions, tramp-read-passwd):
@@ -5,8 +11,8 @@
 	instead of PROC for caching "first-password-request".  Otherwise,
 	new processes would not profit from passwords already entered.
 
-	* net/tramp-cache.el (tramp-dump-connection-properties): Don't
-	save "first-password-request" property.
+	* net/tramp-cache.el (tramp-dump-connection-properties):
+	Don't save "first-password-request" property.
 
 2010-02-14  Juanma Barranquero  <lekktu@gmail.com>
 
--- a/lisp/emacs-lisp/advice.el	Mon Feb 15 16:04:53 2010 +0100
+++ b/lisp/emacs-lisp/advice.el	Mon Feb 15 14:55:51 2010 -0500
@@ -2685,7 +2685,9 @@
       (ad-with-auto-activation-disabled
        (require 'bytecomp)
        (let ((symbol (make-symbol "advice-compilation"))
-	     (byte-compile-warnings byte-compile-warnings))
+	     (byte-compile-warnings byte-compile-warnings)
+             ;; Don't pop up windows showing byte-compiler warnings.
+             (warning-suppress-types '(bytecomp)))
 	 (if (featurep 'cl)
 	     (byte-compile-disable-warning 'cl-functions))
 	 (fset symbol (symbol-function function))