(font-lock-default-function): Use with-no-warnings.
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Feb 2005 06:45:26 +0000 (06:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Feb 2005 06:45:26 +0000 (06:45 +0000)
lisp/font-core.el

index bbe1961..ea1880b 100644 (file)
@@ -203,7 +203,8 @@ this function onto `change-major-mode-hook'."
   ;; `font-lock-defaults'.
   (when (or font-lock-defaults
            (and (boundp 'font-lock-keywords) font-lock-keywords)
-           (cdr (assq major-mode font-lock-defaults-alist)))
+           (with-no-warnings
+            (cdr (assq major-mode font-lock-defaults-alist))))
     (font-lock-mode-internal mode)))
 
 (defun turn-on-font-lock ()