diff options
author | Achim Gratz <Stromeko@Stromeko.DE> | 2013-11-27 19:56:38 +0100 |
---|---|---|
committer | Achim Gratz <Stromeko@Stromeko.DE> | 2013-11-27 19:56:38 +0100 |
commit | f2483ec4bbe196ab29ef6312b0d7c1c179a9eafe (patch) | |
tree | 4ce03bc3b2e6f4d903c0ed8cbf5596d6bd989187 | |
parent | 0911edfac881ab17a2cd1670f169ff4bdf1ac486 (diff) | |
download | org-mode-f2483ec4bbe196ab29ef6312b0d7c1c179a9eafe.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index 92344db..2501a23 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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 () |