Only warn about RESET_CHECK_BOXES if it's really there

This commit is contained in:
Daniel Borchmann 2021-03-20 16:33:00 +01:00
parent 7833e28185
commit fd14313b9b
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -307,8 +307,8 @@ tag PERIODIC."
(defun org-reset-checkbox-state-maybe ()
"Reset all checkboxes in an entry if `RESET_CHECK_BOXES' property is set."
(interactive "*")
(when (org-entry-get (point) "RESET_CHECK_BOXES")
(warn "Using the RESET_CHECK_BOXES property is deprecated, user periodic tasks instead")
(if (org-entry-get (point) "RESET_CHECK_BOXES")
(org-reset-checkbox-state-subtree)))