Replace org-mode-p with usual (eq major-mode 'org-mode) check
[org-mode.git] / lisp / org-timer.el
index c1ad768..ef5dba6 100644 (file)
@@ -372,7 +372,7 @@ replace any running timer."
                     (org-show-entry)
                     (or (ignore-errors (org-get-heading))
                         (concat "File:" (file-name-nondirectory (buffer-file-name)))))))
-               ((org-mode-p)
+               ((eq major-mode 'org-mode)
                 (or (ignore-errors (org-get-heading))
                     (concat "File:" (file-name-nondirectory (buffer-file-name)))))
                (t (error "Not in an Org buffer"))))