Function: todo-get-count
todo-get-count is a byte-compiled function defined in todo-mode.el.gz.
Signature
(todo-get-count TYPE &optional CATEGORY)
Documentation
Return count of TYPE items in CATEGORY.
If CATEGORY is nil, default to the current category.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-get-count (type &optional category)
"Return count of TYPE items in CATEGORY.
If CATEGORY is nil, default to the current category."
(let* ((cat (or category (todo-current-category)))
(counts (cdr (assoc cat todo-categories)))
(idx (cond ((eq type 'todo) 0)
((eq type 'diary) 1)
((eq type 'done) 2)
((eq type 'archived) 3))))
(aref counts idx)))