Second try: Ensure that file local variables are set
commit0911edfac881ab17a2cd1670f169ff4bdf1ac486
authorNick Dokos <ndokos@gmail.com>
Tue, 26 Nov 2013 04:38:48 +0000 (25 23:38 -0500)
committerNick Dokos <ndokos@gmail.com>
Wed, 27 Nov 2013 14:19:56 +0000 (27 09:19 -0500)
treed0e3496e342379f911b9ba12fa37ce6ef1454ccf
parenta82a5206f347e1e9d2fd46aa2dd3e08df1898f19
Second try: Ensure that file local variables are set

* lisp/org.el (org-mode-restart): Call normal-mode,
  instead of org-mode. This will set the mode but it
  will also set file local variables properly.

Reported by Tom Dye: C-c C-c on e.g an #+OPTIONS line
would lose file local variable settings.

The original fix (commit 5ea0228) was incorrect: if the
local variable was a mode setting, then we ended up in an
"infinite" recursion. Problem found, reported and a reproducer
provided by York Zhao.
lisp/org.el