summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <dominik@vpn-staff-146-50-69-41.vpn.uva.nl>2014-01-14 20:45:54 +0100
committerCarsten Dominik <dominik@vpn-staff-146-50-69-41.vpn.uva.nl>2014-01-14 20:45:54 +0100
commit723306d6e7797279448fd9b1cabc4beba8cc897b (patch)
treec0eb79ca3d86749efcbf31ca9ed2a951fd3933b8
parent4a9820067a3fdb78c977a5077771b86d548764a4 (diff)
downloadorg-mode-723306d6e7797279448fd9b1cabc4beba8cc897b.tar.gz
Fix mode reset
-rw-r--r--lisp/org.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index ee7965a..337cab9 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'."