Browse Source

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.
Achim Gratz 11 năm trước cách đây
mục cha
commit
f2483ec4bb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      lisp/org.el

+ 3 - 0
lisp/org.el

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