]> code.delx.au - gnu-emacs-elpa/commitdiff
Silence obsolete warnings.
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 19 May 2015 00:32:34 +0000 (17:32 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 19 May 2015 00:32:34 +0000 (17:32 -0700)
test/context-coloring-test.el

index e22ee2987252595d634e03fb8a92ca74c8f3ac70..841587f6d343846adeb7937d430edb088bf7e646 100644 (file)
@@ -49,7 +49,8 @@
 
 (defun context-coloring-test-cleanup ()
   "Cleanup after all tests."
-  (setq context-coloring-comments-and-strings nil)
+  (with-no-warnings
+    (setq context-coloring-comments-and-strings nil))
   (setq context-coloring-js-block-scopes nil)
   (setq context-coloring-colorize-hook nil)
   (setq context-coloring-check-scopifier-version-hook nil)
@@ -1082,7 +1083,8 @@ see that function."
 
 (defun context-coloring-test-js-comments-and-strings-setup ()
   "Setup comments and strings.  Deprecated."
-  (setq context-coloring-comments-and-strings t))
+  (with-no-warnings
+    (setq context-coloring-comments-and-strings t)))
 
 (context-coloring-test-deftest-js-mode comments-and-strings)
 (context-coloring-test-deftest-js2-mode comments-and-strings)