Function: org-reset-checkbox-state-subtree
org-reset-checkbox-state-subtree is an interactive and byte-compiled
function defined in org-list.el.gz.
Signature
(org-reset-checkbox-state-subtree)
Documentation
Reset all checkboxes in an entry subtree.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-list.el.gz
(defun org-reset-checkbox-state-subtree ()
"Reset all checkboxes in an entry subtree."
(interactive "*")
(if (org-before-first-heading-p)
(error "Not inside a tree")
(save-restriction
(save-excursion
(org-narrow-to-subtree)
(org-fold-show-subtree)
(goto-char (point-min))
(let ((end (point-max)))
(while (< (point) end)
(when (org-at-item-checkbox-p)
(replace-match "[ ]" t t nil 1))
(forward-line 1)))
(org-update-checkbox-count-maybe 'narrow)))))