From dc2ca47ea5ab053722bf59ae1fde92e3786f6f41 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 25 May 2026 21:44:43 -0500 Subject: docs: drop the stale sync-hook mention in set-heading-state --- pearl.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pearl.el') diff --git a/pearl.el b/pearl.el index 3b53556..cadc0de 100644 --- a/pearl.el +++ b/pearl.el @@ -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) -- cgit v1.2.3