<feed xmlns='http://www.w3.org/2005/Atom'>
<title>org-drill/tests/test-org-drill-persist-recovery.el, branch main</title>
<subtitle>Spaced-repetition flashcards for Org Mode
</subtitle>
<id>https://git.cjennings.net/org-drill/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/org-drill/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/'/>
<updated>2026-05-05T10:18:59+00:00</updated>
<entry>
<title>fix: recover from corrupted persist file at package load (upstream #45)</title>
<updated>2026-05-05T10:18:59+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T10:18:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=7f7564612628d31718c2fc1e4471ab7fa29ef3c1'/>
<id>urn:sha1:7f7564612628d31718c2fc1e4471ab7fa29ef3c1</id>
<content type='text'>
Issue #45 (2021): persist-load raised End of file during parsing
at persist.el:413 in some configurations, likely from a corrupted
persist data file.  Pre-fix, this propagated up through the
top-level (persist-defvar org-drill-sm5-optimal-factor-matrix ...)
form at file-load time and broke the entire package's load.

Wrapped the persist-defvar form in condition-case.  On failure, the
matrix falls back to a fresh nil binding via plain defvar, and a
message tells the user what happened.  org-drill continues to load
normally.
</content>
</entry>
</feed>
