From e5f99f9aae1a772f4ac3cab85c6dbb89ccc57a1c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 25 Oct 2025 20:51:15 -0500 Subject: fix:chime: Use org-get-todo-state for TODOs, not org-entry-get Changed chime--whitelist-predicates and chime--blacklist-predicates to use org-get-todo-state instead of org-entry-get for retrieving TODO keywords. org-entry-get is for reading properties from the properties drawer, not for getting the TODO state of a heading. Also rewrote test-chime-apply-blacklist.el and test-chime-apply-whitelist.el to remove over-mocking. Tests now use real org-mode buffers with actual TODO keywords and tags instead of mocking org-entry-get, which was hiding a bug. --- chime.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chime.el') diff --git a/chime.el b/chime.el index 50c4f5d..2648657 100644 --- a/chime.el +++ b/chime.el @@ -437,7 +437,7 @@ Combines keyword, tag, and custom predicate whitelists." (->> `([,chime-keyword-whitelist (lambda (it) (-contains-p chime-keyword-whitelist - (org-entry-get it "TODO")))] + (org-with-point-at it (org-get-todo-state))))] [,chime-tags-whitelist (lambda (it) @@ -456,7 +456,7 @@ Combines keyword, tag, and custom predicate blacklists." (->> `([,chime-keyword-blacklist (lambda (it) (-contains-p chime-keyword-blacklist - (org-entry-get it "TODO")))] + (org-with-point-at it (org-get-todo-state))))] [,chime-tags-blacklist (lambda (it) -- cgit v1.2.3