aboutsummaryrefslogtreecommitdiff
path: root/modules/calendar-sync-org.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-30 09:09:15 -0500
committerCraig Jennings <c@cjennings.net>2026-07-30 09:09:15 -0500
commitce223dc63c4901603e66aab0ebc8934791260c89 (patch)
tree84b7d2f2a2583f7cfc4e9090629b77e29d4f00cd /modules/calendar-sync-org.el
parent204bc6091b76c30e68a14cd2c3b948179b27c602 (diff)
downloaddotemacs-ce223dc63c4901603e66aab0ebc8934791260c89.tar.gz
dotemacs-ce223dc63c4901603e66aab0ebc8934791260c89.zip
fix(agenda): make the project-name category actually apply
- The override never fired once since it shipped. - Its guard wanted org-category to already equal "todo". - Org leaves that nil and derives the name later. - So the condition was false in every real buffer. The guard now tests for nil, and the hook runs at depth -100. That depth is load-bearing. org-get-category resolves a deferred value the element cache then holds, so any hook reading it first freezes "todo" and leaves the override inert. add-hook prepends, and three hooks already run ahead. The old tests set org-category by hand to a value org never produces, so they passed while the feature did nothing. They now visit real files and assert on what the agenda reads. The two todo.org agenda files show their project name. Files with distinctive names keep theirs, and an explicit category still wins.
Diffstat (limited to 'modules/calendar-sync-org.el')
0 files changed, 0 insertions, 0 deletions