summaryrefslogtreecommitdiff
path: root/modules/system-lib.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 04:25:24 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 04:25:24 -0500
commit49038c418ead0adc83ffc8fce43c0cb6da9813df (patch)
tree50964465888b11bf5e2626f29478149e9f1fa64f /modules/system-lib.el
parent175aad0b1a3dfec37f189ba0dcf34d3ba61b50eb (diff)
downloaddotemacs-49038c418ead0adc83ffc8fce43c0cb6da9813df.tar.gz
dotemacs-49038c418ead0adc83ffc8fce43c0cb6da9813df.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/system-lib.el')
0 files changed, 0 insertions, 0 deletions