<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-org-roam-config-save-daily.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-05-23T00:43:00+00:00</updated>
<entry>
<title>fix(org-roam): always save the daily after a journal task-copy</title>
<updated>2026-05-23T00:43:00+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-23T00:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=f07ce74d835dfc81e1e529240526829464ad8b21'/>
<id>urn:sha1:f07ce74d835dfc81e1e529240526829464ad8b21</id>
<content type='text'>
The save lived inside the `unless` branch that only ran when the completed task needed an `org-refile` into a different file. When the task was already in today's daily, the copy left the buffer modified but unsaved. A crash before the next manual save lost it, and shutdown prompted about the unsaved journal buffer.

I pulled the save out of the refile branch into a `cj/--org-roam-save-daily` helper that runs on both paths and only writes when the buffer is modified. Extracting it also makes the save logic testable without driving the org-roam capture machinery.
</content>
</entry>
</feed>
