diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-30 09:09:15 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-30 09:09:15 -0500 |
| commit | ce223dc63c4901603e66aab0ebc8934791260c89 (patch) | |
| tree | 84b7d2f2a2583f7cfc4e9090629b77e29d4f00cd /tests/fixtures/grammar-errors-punctuation.txt | |
| parent | 204bc6091b76c30e68a14cd2c3b948179b27c602 (diff) | |
| download | dotemacs-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 'tests/fixtures/grammar-errors-punctuation.txt')
0 files changed, 0 insertions, 0 deletions
