]> git.eshelyaron.com Git - emacs.git/commitdiff
(font-lock-default-function): Handle the rare case where
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 3 Feb 2005 04:28:21 +0000 (04:28 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 3 Feb 2005 04:28:21 +0000 (04:28 +0000)
only font-lock-keywords is set.

lisp/ChangeLog
lisp/font-core.el

index 032d796014a177a47dd3e2ee12195d3946e1d513..6390dc64b49ce8cb96b3167b2b193d5313c2cd71 100644 (file)
@@ -1,6 +1,11 @@
+2005-02-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * font-core.el (font-lock-default-function): Handle the rare case where
+       only font-lock-keywords is set.
+
 2005-02-03  Kenichi Handa  <handa@m17n.org>
 
-       * international/characters.el: Cancel previous change. for
+       * international/characters.el: Cancel previous change for
        I-WITH-DOT-ABOVE and DOTLESS-i.
 
        * international/latin-5.el: Cancel previous change.
index ce4a35a0ec3c49855b9b68924e32aea4c8f8192a..bbe1961e51e6a80f89c9a979648f5a08db1b83cd 100644 (file)
@@ -1,7 +1,7 @@
 ;;; font-core.el --- Core interface to font-lock
 
-;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001, 02, 2003
-;;  Free Software Foundation, Inc.
+;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+;;   2002, 2003, 2005  Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 ;; Keywords: languages, faces
@@ -202,6 +202,7 @@ this function onto `change-major-mode-hook'."
   ;; Only do hard work if the mode has specified stuff in
   ;; `font-lock-defaults'.
   (when (or font-lock-defaults
+           (and (boundp 'font-lock-keywords) font-lock-keywords)
            (cdr (assq major-mode font-lock-defaults-alist)))
     (font-lock-mode-internal mode)))
 
@@ -295,6 +296,5 @@ means that Font Lock mode is turned on for buffers in C and C++ modes only."
 
 (provide 'font-core)
 
+;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71
 ;;; font-core.el ends here
-
-;;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71