aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-datetime.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 14:34:52 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 14:34:52 -0500
commit8f54b6f88288fe09c0e5b949d731c9dea1f878f3 (patch)
tree59ef7d289a4b6f735bfdb4ee2e3696b8d4778cc2 /modules/custom-datetime.el
parente0f5573d765c0c1697e79be94d8c8198be9f1cbb (diff)
downloaddotemacs-8f54b6f88288fe09c0e5b949d731c9dea1f878f3.tar.gz
dotemacs-8f54b6f88288fe09c0e5b949d731c9dea1f878f3.zip
refactor(cj-org-text): extract Org-safe text sanitizers from calendar-sync
Phase 3 of utility-consolidation. Three sanitizers moved from calendar-sync.el into a new cj-org-text.el module so other consumers (web-clipper, AI conversation, mail-to-org capture) can compose Org content from external text without depending on calendar: - `calendar-sync--sanitize-org-body' -> `cj/org-sanitize-body-text' - `calendar-sync--sanitize-org-property-value' -> `cj/org-sanitize-property-value' - `calendar-sync--sanitize-org-heading' -> `cj/org-sanitize-heading' The helpers stay pure (string in, string out, nil-safe) and have no Org-mode dependency, so they work in batch and in tests without loading Org. Migrate calendar-sync.el to use the new public names: drop the three local defuns, add `(require \='cj-org-text)', update the six call sites in `calendar-sync--make-event-entry'. Move the existing 17-test file to `tests/test-cj-org-text-sanitize.el', rename test names to match the new helpers, add 1 nil-input test for `cj/org-sanitize-heading' that wasn't in the original file. Total: 18 Normal/Boundary tests across the three helpers.
Diffstat (limited to 'modules/custom-datetime.el')
0 files changed, 0 insertions, 0 deletions