summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Dokos <ndokos@gmail.com>2013-11-21 00:30:05 -0500
committerNick Dokos <ndokos@gmail.com>2013-11-21 00:30:05 -0500
commit5ea02285bacb9592b20c95d4797ca7c2ec68ecac (patch)
treed6fabfc74936caf4fcb44c2e8249a4129d9d8b21
parent92f30ae53c85607ff1ad8db882b531ad2f3f3dde (diff)
downloadorg-mode-5ea02285bacb9592b20c95d4797ca7c2ec68ecac.tar.gz
Ensure that file local variables are set
* lisp/org.el (org-mode): Call `hack-local-variables' at the end of `org-mode' to set file local variables. Cribbed from `normal-mode'. Reported by Tom Dye: C-c C-c on e.g an #+OPTIONS line would lose file local variable settings.
-rw-r--r--lisp/org.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index febee75..8539f51 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5512,7 +5512,10 @@ The following commands are available:
(unless org-inhibit-startup-visibility-stuff
(org-set-startup-visibility))))
;; Try to set org-hide correctly
- (set-face-foreground 'org-hide (org-find-invisible-foreground)))
+ (set-face-foreground 'org-hide (org-find-invisible-foreground))
+ ;; Make sure that file local variables are set.
+ (report-errors "File local-variables error: %s"
+ (hack-local-variables)))
;; Update `customize-package-emacs-version-alist'
(add-to-list 'customize-package-emacs-version-alist