aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-comments-comment-inline-border.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 17:39:56 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 17:39:56 -0500
commit1fef9aed248aaf7586950475aa22849e413f1c04 (patch)
treecd7b101163e445d8eab6134b61841022afdaeb5d /tests/test-custom-comments-comment-inline-border.el
parent43022b56569717f28fa16284f7092f2bbe0830ad (diff)
downloaddotemacs-1fef9aed248aaf7586950475aa22849e413f1c04.tar.gz
dotemacs-1fef9aed248aaf7586950475aa22849e413f1c04.zip
feat(ai-conversations): autosave on a periodic timer
The existing autosave only fired after gptel-send returned, so a conversation paused mid-thought wasn't on disk if Emacs crashed. I added a buffer-local repeating timer that calls cj/gptel--save-buffer-to-file every cj/gptel-autosave-interval seconds (default 60) for as long as cj/gptel--autosave-active-p holds. Toggle-off and kill-buffer-hook cancel it cleanly. Tests cover start/stop idempotency, the active-p predicate, the kill-buffer cleanup hook, and the toggle integration.
Diffstat (limited to 'tests/test-custom-comments-comment-inline-border.el')
0 files changed, 0 insertions, 0 deletions