Function: todo-unmark-category
todo-unmark-category is an interactive and byte-compiled function
defined in todo-mode.el.gz.
Signature
(todo-unmark-category)
Documentation
Remove todo-item-mark from all visible items in this category.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/todo-mode.el.gz
(defun todo-unmark-category ()
"Remove `todo-item-mark' from all visible items in this category."
(interactive)
(let* ((cat (todo-current-category))
(marks (assoc cat todo-categories-with-marks)))
(save-excursion
(goto-char (point-min))
(while (not (eobp))
(let* ((ov (todo-get-overlay 'prefix))
;; See comment above in `todo-mark-category'.
(pref (when ov (overlay-get ov 'before-string))))
(when (todo-marked-item-p)
(overlay-put ov 'before-string (substring pref 1)))
(todo-forward-item))))
(setq todo-categories-with-marks
(delq marks todo-categories-with-marks))))