summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-01-15 09:21:59 +0100
committerBastien Guerry <bzg@altern.org>2014-01-15 09:21:59 +0100
commit0a8fe04a9d832c228c048c4775541b59efeef2ae (patch)
tree536dd3c90670b48170346a4d4071ff8322b1131b
parent947c3f5c2ad10c262904802aad81ae4d622ccfe5 (diff)
parent723306d6e7797279448fd9b1cabc4beba8cc897b (diff)
downloadorg-mode-0a8fe04a9d832c228c048c4775541b59efeef2ae.tar.gz
Merge branch 'maint' of orgmode.org:org-mode into maint
-rw-r--r--lisp/org.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index d0207e8..b8dfda0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20374,10 +20374,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'."