changeset 63028:6e292941905b

(font-lock-set-defaults): Fix omission in last change.
author Luc Teirlinck <teirllm@auburn.edu>
date Sun, 05 Jun 2005 03:37:59 +0000
parents b5c7398b1750
children f7114bba1fd4
files lisp/font-lock.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Sat Jun 04 22:33:53 2005 +0000
+++ b/lisp/font-lock.el	Sun Jun 05 03:37:59 2005 +0000
@@ -1595,6 +1595,7 @@
   ;; Set fontification defaults iff not previously set for correct major mode.
   (unless (and font-lock-set-defaults
 	       (eq font-lock-mode-major-mode major-mode))
+    (setq font-lock-mode-major-mode major-mode)
     (set (make-local-variable 'font-lock-set-defaults) t)
     (make-local-variable 'font-lock-fontified)
     (make-local-variable 'font-lock-multiline)