diff options
Diffstat (limited to 'pearl.el')
| -rw-r--r-- | pearl.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2633,9 +2633,9 @@ locally so #D is accepted regardless of the user's `org-priority' settings." (defun pearl--set-heading-state (state-name state-id) "Update the heading at point to STATE-NAME / STATE-ID. Rewrites the TODO keyword (mapped from STATE-NAME) and the LINEAR-STATE-NAME / -LINEAR-STATE-ID drawer properties. The Linear org-todo sync hook is inhibited -during the keyword change so updating the keyword here does not trigger a -second push back to Linear." +LINEAR-STATE-ID drawer properties. `org-after-todo-state-change-hook' is bound +to nil during the keyword change so programmatically setting the keyword does +not fire any todo-change hooks the user has installed." (save-excursion (org-back-to-heading t) (org-entry-put nil "LINEAR-STATE-NAME" state-name) |
