aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-02-03 04:28:21 +0000
committerStefan Monnier2005-02-03 04:28:21 +0000
commit30b940a73115f6b2c0b4686d46df399cbd7381d3 (patch)
tree8ceb1eae234cb35faafbe890818363a9881891f7
parentd78f30b86d46ec52982a98cf7fb1811b3568961d (diff)
downloademacs-30b940a73115f6b2c0b4686d46df399cbd7381d3.tar.gz
emacs-30b940a73115f6b2c0b4686d46df399cbd7381d3.zip
(font-lock-default-function): Handle the rare case where
only font-lock-keywords is set.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/font-core.el8
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 032d796014a..6390dc64b49 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,11 @@
12005-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * font-core.el (font-lock-default-function): Handle the rare case where
4 only font-lock-keywords is set.
5
12005-02-03 Kenichi Handa <handa@m17n.org> 62005-02-03 Kenichi Handa <handa@m17n.org>
2 7
3 * international/characters.el: Cancel previous change. for 8 * international/characters.el: Cancel previous change for
4 I-WITH-DOT-ABOVE and DOTLESS-i. 9 I-WITH-DOT-ABOVE and DOTLESS-i.
5 10
6 * international/latin-5.el: Cancel previous change. 11 * international/latin-5.el: Cancel previous change.
diff --git a/lisp/font-core.el b/lisp/font-core.el
index ce4a35a0ec3..bbe1961e51e 100644
--- a/lisp/font-core.el
+++ b/lisp/font-core.el
@@ -1,7 +1,7 @@
1;;; font-core.el --- Core interface to font-lock 1;;; font-core.el --- Core interface to font-lock
2 2
3;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001, 02, 2003 3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
4;; Free Software Foundation, Inc. 4;; 2002, 2003, 2005 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: languages, faces 7;; Keywords: languages, faces
@@ -202,6 +202,7 @@ this function onto `change-major-mode-hook'."
202 ;; Only do hard work if the mode has specified stuff in 202 ;; Only do hard work if the mode has specified stuff in
203 ;; `font-lock-defaults'. 203 ;; `font-lock-defaults'.
204 (when (or font-lock-defaults 204 (when (or font-lock-defaults
205 (and (boundp 'font-lock-keywords) font-lock-keywords)
205 (cdr (assq major-mode font-lock-defaults-alist))) 206 (cdr (assq major-mode font-lock-defaults-alist)))
206 (font-lock-mode-internal mode))) 207 (font-lock-mode-internal mode)))
207 208
@@ -295,6 +296,5 @@ means that Font Lock mode is turned on for buffers in C and C++ modes only."
295 296
296(provide 'font-core) 297(provide 'font-core)
297 298
299;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71
298;;; font-core.el ends here 300;;; font-core.el ends here
299
300;;; arch-tag: f8c286e1-02f7-41d9-b89b-1b67780aed71