[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local var evaluation order
From: |
Richard M. Stallman |
Subject: |
Re: local var evaluation order |
Date: |
Thu, 18 Aug 2005 10:48:46 -0400 |
does not fontify, whereas w/ older emacs versions it does.
it also does not fontify after reversing the order of the
`mode:' and `outline-regexp:' lines. if i set-default the
value of `outline-regexp', however, it fontifies.
This is a different problem. Please try this fix.
*** files.el 10 Aug 2005 13:47:46 -0400 1.784
--- files.el 17 Aug 2005 19:19:23 -0400
***************
*** 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 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)))