aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-ordering.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-20 11:58:40 -0400
committerCraig Jennings <c@cjennings.net>2026-05-20 11:58:40 -0400
commit4a6201dd0117df55d164cee969f7c3c8123f6b28 (patch)
tree8e71986b40f19c3fa598ed436a648795b58784d8 /modules/custom-ordering.el
parentd6a995b9090ca35190e59e765d5c14daf887e9d8 (diff)
downloaddotemacs-4a6201dd0117df55d164cee969f7c3c8123f6b28.tar.gz
dotemacs-4a6201dd0117df55d164cee969f7c3c8123f6b28.zip
feat(calendar-sync): dispatch Google calendars through API helper
The Python helper from d6a995b could fetch and render on its own, but nothing in Emacs called it. This wires it in. Each entry in calendar-sync-calendars now takes a :fetcher key. 'api routes through the helper, and the default 'ics keeps the existing curl + Elisp parser path. Proton and any plain .ics feed work unchanged because the key defaults to 'ics. The 'api path reads :account and :calendar-id off the calendar plist, builds the helper command (honoring the past/future window and the calendar-sync-skip-declined toggle), and runs it through make-process. The script writes the org file directly, so the sentinel only handles state bookkeeping and failure reporting, the same as the .ics worker. I split the old --sync-calendar body into --sync-calendar-ics and turned --sync-calendar into a dispatcher. The command builder and script-path resolution are pure functions, tested directly. The dispatch routing is tested with both leaf syncers stubbed, so no process runs. I added 14 tests across the two new files, and the full suite is green. Running the 'api path still needs the one-time OAuth bootstrap from docs/calendar-sync-api-setup.org.
Diffstat (limited to 'modules/custom-ordering.el')
0 files changed, 0 insertions, 0 deletions