Only warn about RESET_CHECK_BOXES if it's really there

This commit is contained in:
Daniel - 2021-03-20 16:33:00 +01:00
父節點 7833e28185
當前提交 fd14313b9b
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 1C7071A75BB72D64
共有 1 個檔案被更改,包括 3 行新增3 行删除

查看文件

@ -307,9 +307,9 @@ tag PERIODIC."
(defun org-reset-checkbox-state-maybe ()
"Reset all checkboxes in an entry if `RESET_CHECK_BOXES' property is set."
(interactive "*")
(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)))
(when (org-entry-get (point) "RESET_CHECK_BOXES")
(warn "Using the RESET_CHECK_BOXES property is deprecated, user periodic tasks instead")
(org-reset-checkbox-state-subtree)))
;;; Helper Functions for Clocking