diff --git a/lisp/org.el b/lisp/org.el index 57de36c82..7a4f34728 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12720,7 +12720,7 @@ statistics everywhere." (setq cnt-all (1+ cnt-all)) (if (eq org-provide-todo-statistics t) (and kwd (setq cnt-all (1+ cnt-all))))) - (when (or (and (eq org-provide-todo-statistics t) + (when (or (and (member org-provide-todo-statistics '(t all-headlines)) (member kwd org-done-keywords)) (and (listp org-provide-todo-statistics) (listp (car org-provide-todo-statistics))