From 723306d6e7797279448fd9b1cabc4beba8cc897b Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 14 Jan 2014 20:45:54 +0100 Subject: [PATCH] Fix mode reset --- lisp/org.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index ee7965a20..337cab961 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20373,10 +20373,11 @@ This command does many different things, depending on context: (defun org-mode-restart () "Restart Org-mode, to scan again for special lines. -Also updates the keyword regular expressions." +Also updates the keyword regular expressions and file variables." (interactive) - (org-mode) - (message "Org-mode restarted")) + (funcall major-mode) + (hack-local-variables) + (message "%s restarted" major-mode)) (defun org-kill-note-or-show-branches () "If this is a Note buffer, abort storing the note. Else call `show-branches'."