0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 22:16:27 +00:00

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.
This commit is contained in:
Nick Dokos 2013-11-21 00:30:05 -05:00
parent 92f30ae53c
commit 5ea02285ba

View file

@ -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