]> git.eshelyaron.com Git - emacs.git/commitdiff
(font-lock-set-defaults): Fix omission in last change.
authorLuc Teirlinck <teirllm@auburn.edu>
Sun, 5 Jun 2005 03:37:59 +0000 (03:37 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Sun, 5 Jun 2005 03:37:59 +0000 (03:37 +0000)
lisp/font-lock.el

index 691f617cfb0643abd1bf45e5a1fa8c3e4b174384..1e4e0d188ad8dc0a1536c59bdac54ea250194d86 100644 (file)
@@ -1595,6 +1595,7 @@ Sets various variables using `font-lock-defaults' (or, if nil, using
   ;; 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)