Function: todo-category-number
todo-category-number is a byte-compiled function defined in
todo-mode.el.gz.
Signature
(todo-category-number CAT)
Documentation
Return the number of category CAT in this todo file.
The buffer-local variable todo-category-number(var)/todo-category-number(fun) holds this
number as its value.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-category-number (cat)
"Return the number of category CAT in this todo file.
The buffer-local variable `todo-category-number' holds this
number as its value."
(let ((categories (mapcar #'car todo-categories)))
(setq todo-category-number
;; Increment by one, so that the number of the first
;; category is one rather than zero.
(1+ (- (length categories)
(length (member cat categories)))))))