From: Luc Teirlinck Date: Sun, 5 Jun 2005 03:37:59 +0000 (+0000) Subject: (font-lock-set-defaults): Fix omission in last change. X-Git-Tag: emacs-pretest-22.0.90~9298 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=122450096158517f3686d4f33e497b48fa2e88cf;p=emacs.git (font-lock-set-defaults): Fix omission in last change. --- 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)