<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-org-refile-config--advice-helpers.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-07-24T21:29:54+00:00</updated>
<entry>
<title>refactor(org-refile): name the two refile advices so they can be removed</title>
<updated>2026-07-24T21:29:54+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-07-24T21:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=6a88b2618835937fa4a508f55e2454ac16d1f408'/>
<id>urn:sha1:6a88b2618835937fa4a508f55e2454ac16d1f408</id>
<content type='text'>
- Both were anonymous lambdas advising org-refile and org-refile-get-targets.
- An anonymous advice can't be advice-removed by reference.
- So deleting one from source left a live daemon still running it.
- Extracted both to named defuns and installed them remove-then-add.
- Now each reloads to a single copy and is removable by reference.
- Added unit tests for the target-visiting logic, which had no coverage.
</content>
</entry>
</feed>
