Replace org-mode-p with usual (eq major-mode 'org-mode) check
[org-mode.git] / testing / org-test.el
index a2285a0..57b7252 100644 (file)
@@ -151,7 +151,7 @@ currently executed.")
      (save-window-excursion
        (save-match-data
         (find-file my-file)
-        (unless (org-mode-p)
+        (unless (eq major-mode 'org-mode)
           (org-mode))
         (setq to-be-removed (current-buffer))
         (goto-char (point-min))