org: fix commit 0911edfac8

* lisp/org.el (org-mode-restart): After `normal-mode´ the mode may not
  be "org-mode".  Explicitly switch to org-mode in that case.
This commit is contained in:
Achim Gratz 2013-11-27 19:56:38 +01:00
parent 0911edfac8
commit f2483ec4bb

View file

@ -20468,6 +20468,9 @@ Also updates the keyword regular expressions."
(interactive)
;; this will set the mode *and* set file local variables.
(normal-mode)
;; but it may leave us in some other mode
(unless (string= "org-mode" mode-name)
(org-mode))
(message "Org-mode restarted"))
(defun org-kill-note-or-show-branches ()