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 | 102af28f81e7389a309f671788076ae2c24c8f29 (patch) | |
| tree | dd4b348521e8e36f11ff318212de92a8fdde0c68 /modules/selection-framework.el | |
| parent | d3f4d3f75e80a5aff0cfe95c8a6f60b922588d6f (diff) | |
| download | dotemacs-102af28f81e7389a309f671788076ae2c24c8f29.tar.gz dotemacs-102af28f81e7389a309f671788076ae2c24c8f29.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 'modules/selection-framework.el')
0 files changed, 0 insertions, 0 deletions
