浏览代码

Fix 80fc5ad

Thanks to Yasushi SHOJI for reporting this.
Bastien Guerry 11 年之前
父节点
当前提交
2c7ffbe4b2
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      lisp/org.el

+ 5 - 1
lisp/org.el

@@ -12715,6 +12715,8 @@ statistics everywhere."
 	    	(setq kwd (and (or recursive (= l1 ltoggle))
 	    		       (match-string 2)))
 	    	(if (or (eq org-provide-todo-statistics 'all-headlines)
+			(and (eq org-provide-todo-statistics t)
+			     (or (member kwd org-done-keywords)))
 	    		(and (listp org-provide-todo-statistics)
 			     (stringp (car org-provide-todo-statistics))
 	    		     (or (member kwd org-provide-todo-statistics)
@@ -12727,7 +12729,9 @@ 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 (listp org-provide-todo-statistics)
+	    	(when (or (and (eq org-provide-todo-statistics t)
+			       (member kwd org-done-keywords))
+			  (and (listp org-provide-todo-statistics)
 			       (listp (car org-provide-todo-statistics))
 			       (member kwd org-done-keywords)
 			       (member kwd (cadr org-provide-todo-statistics)))