]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 bbe1961e51e6a80f89c9a979648f5a08db1b83cd..ea1880baac749604963e3cd50ab8574bb1b8f8be 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 ()