org.el (org-ctrl-c-ctrl-c): Throw a user error when trying to toggle a blocked checkbox
* org.el (org-ctrl-c-ctrl-c): Throw a user error when trying to toggle a blocked checkbox.
This commit is contained in:
parent
aa80e441dc
commit
a62beff06d
|
@ -19122,8 +19122,10 @@ This command does many different things, depending on context:
|
||||||
(org-list-struct-fix-ind struct parents)
|
(org-list-struct-fix-ind struct parents)
|
||||||
(setq block-item
|
(setq block-item
|
||||||
(org-list-struct-fix-box struct parents prevs orderedp)))
|
(org-list-struct-fix-box struct parents prevs orderedp)))
|
||||||
(org-list-struct-apply-struct struct old-struct)
|
(if (equal struct old-struct)
|
||||||
(org-update-checkbox-count-maybe)
|
(user-error "Cannot toggle this checkbox (unchecked subitems?)")
|
||||||
|
(org-list-struct-apply-struct struct old-struct)
|
||||||
|
(org-update-checkbox-count-maybe))
|
||||||
(when block-item
|
(when block-item
|
||||||
(message
|
(message
|
||||||
"Checkboxes were removed due to unchecked box at line %d"
|
"Checkboxes were removed due to unchecked box at line %d"
|
||||||
|
|
Loading…
Reference in New Issue