From 122450096158517f3686d4f33e497b48fa2e88cf Mon Sep 17 00:00:00 2001 From: Luc Teirlinck Date: Sun, 5 Jun 2005 03:37:59 +0000 Subject: [PATCH] (font-lock-set-defaults): Fix omission in last change. --- lisp/font-lock.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 691f617cfb0..1e4e0d188ad 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -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) -- 2.39.5