(font-lock-set-defaults): Use with-no-warnings.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 Aug 2004 16:53:44 +0000 (16:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 Aug 2004 16:53:44 +0000 (16:53 +0000)
lisp/font-lock.el

index 8cb43bc..052e923 100644 (file)
@@ -1516,7 +1516,9 @@ Sets various variables using `font-lock-defaults' (or, if nil, using
     (make-local-variable 'font-lock-fontified)
     (make-local-variable 'font-lock-multiline)
     (let* ((defaults (or font-lock-defaults
-                        (cdr (assq major-mode font-lock-defaults-alist))))
+                        (cdr (assq major-mode
+                                   (with-no-warnings
+                                    font-lock-defaults-alist)))))
           (keywords
            (font-lock-choose-keywords (nth 0 defaults)
                                       (font-lock-value-in-major-mode font-lock-maximum-decoration)))