diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 04:25:24 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 04:25:24 -0500 |
| commit | cf1c0ea6fa9fb9a0fb7a3ceeb742c01b39f092f8 (patch) | |
| tree | 6c6673f6cfaf70e036cdda07fdb267c2c1fe21f4 /tests/test-org-drill-first-function.el | |
| parent | f796042018e470f11ee4dfbe60d955d9f2e1b2d0 (diff) | |
| download | dotemacs-cf1c0ea6fa9fb9a0fb7a3ceeb742c01b39f092f8.tar.gz dotemacs-cf1c0ea6fa9fb9a0fb7a3ceeb742c01b39f092f8.zip | |
refactor(org-drill): share one validated drill-file selector
org-capture-config.el and org-drill-config.el each scanned drill-dir with an inline directory-files call, so a missing, empty, or unreadable drill-dir surfaced as a low-level directory-files error or an empty completing-read, depending on which command ran. Added cj/--drill-files-or-error, the single validated entry point: it signals a clear user-error when the directory is missing, unreadable, or has no drill files, and otherwise returns the list. cj/--drill-pick-file and both drill capture templates now route through it. The pure cj/--drill-files-in primitive and its tests are unchanged. Tests cover missing dir, empty dir, a non-org-only dir, and a normal listing.
Diffstat (limited to 'tests/test-org-drill-first-function.el')
0 files changed, 0 insertions, 0 deletions
