aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 09:41:56 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 09:41:56 -0500
commit77b2829ee36d350e1af1ea5252d83bc477a6dbe6 (patch)
tree8ff9f4203aab834ce9c3fdf479fd228702bcf4d6 /scripts
parente44bcad835f998f35d22aa1d6fa2a879eb843a87 (diff)
downloadorg-drill-77b2829ee36d350e1af1ea5252d83bc477a6dbe6.tar.gz
org-drill-77b2829ee36d350e1af1ea5252d83bc477a6dbe6.zip
refactor: split org-drill main entry into named phases
org-drill was 137 lines mixing five distinct concerns: an org-version warning (now dead under the org>=9.6 floor), session reset, entry collection, drill execution, and post-session messaging. Extracted four helpers, each with a single responsibility: - org-drill--prepare-fresh-session: zero out queues + counters - org-drill--collect-entries: scan + sort overdue - org-drill--queues-empty-p: predicate for the no-pending branch - org-drill--show-end-message: dispatch resume-hint vs final-report Plus org-drill--show-resume-hint for the keystr-aware suspended message. Removed the dead org<7.9.3f warning block (the org>=9.6 floor makes it unreachable). org-drill itself drops from 137 lines to 36 and the cl-block wrapper goes away — the cl-return-from inside org-drill-entries returns through the normal control flow now.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions