summaryrefslogtreecommitdiff
path: root/tests/test-prog-shell--make-script-executable.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
commitfb66efa9adba679ee441d6c2cf1eb0b9521278fc (patch)
tree022ba75b83356399c18f865cda276e74d1ef3955 /tests/test-prog-shell--make-script-executable.el
parentb5d9f4e7e5252493ede3e7dc23572e3f3b66ec32 (diff)
downloaddotemacs-fb66efa9adba679ee441d6c2cf1eb0b9521278fc.tar.gz
dotemacs-fb66efa9adba679ee441d6c2cf1eb0b9521278fc.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-prog-shell--make-script-executable.el')
0 files changed, 0 insertions, 0 deletions