Make sure Org mode is turned on after loading the example file

* org-test.el (org-test-in-example-file): Make sure Org mode is turned
on after loading the example file.
This commit is contained in:
David Maus 2011-09-25 09:26:50 +02:00
parent 4446e50e3d
commit 07d11a6847
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ currently executed.")
(save-window-excursion
(save-match-data
(find-file my-file)
(unless (org-mode-p)
(org-mode))
(setq to-be-removed (current-buffer))
(goto-char (point-min))
(condition-case nil