Index: emacs/lisp/files.el
diff -c emacs/lisp/files.el:1.784 emacs/lisp/files.el:1.785
*** emacs/lisp/files.el:1.784   Mon Aug 15 02:05:01 2005
--- emacs/lisp/files.el Sat Aug 20 21:49:28 2005
***************
*** 1733,1738 ****
--- 1733,1744 ----
        (set-auto-mode))
      (report-errors "File local-variables error: %s"
        (hack-local-variables)))
+   ;; Turn font lock off and on, to make sure it takes account of
+   ;; whatever file local variables are relevant to it.
+   (when (and font-lock-mode (eq (car font-lock-keywords) t))
+     (setq font-lock-keywords (cadr font-lock-keywords))
+     (font-lock-mode 1))
+ 
    (if (fboundp 'ucs-set-table-for-input) ; don't lose when building
        (ucs-set-table-for-input)))
  


_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs

Reply via email to