org-toggle-checkbox

org-toggle-checkbox is an interactive compiled Lisp function in `org-list.el'.


(org-toggle-checkbox &optional TOGGLE-PRESENCE)

Toggle the checkbox in the current line.
With prefix arg TOGGLE-PRESENCE, add or remove checkboxes. With
double prefix, set checkbox to [-].

When there is an active region, toggle status or presence of the
first checkbox there, and make every item inside have the same
status or presence, respectively.

If the cursor is in a headline, apply this to all checkbox items
in the text below the heading, taking as reference the first item
in subtree, ignoring drawers.