mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-22 00:48:37 +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:
parent
92f30ae53c
commit
5ea02285ba
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue