X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=eightsync%2Fagenda.scm;h=ede753fee409eb4a3f88b6728876fc77b079e74d;hp=a2463a2a8a892aef7e4dc325558355030227737c;hb=2cf0efca6f8abb4938cec1cc4d00bb96dcc4de87;hpb=9532a9722a3bf3ba3f4bb9478b3ebd27a3b51af7;ds=sidebyside diff --git a/eightsync/agenda.scm b/eightsync/agenda.scm index a2463a2..ede753f 100644 --- a/eightsync/agenda.scm +++ b/eightsync/agenda.scm @@ -30,6 +30,8 @@ make-async-prompt-tag + list->q make-q* + make-time-segment time-segment? time-segment-time time-segment-queue @@ -146,6 +148,19 @@ Generally done automatically for the user through (make-agenda)." "Can't get current agenda prompt if there's no current agenda!") (agenda-prompt-tag current-agenda)))) +;; helper for making queues for an agenda +(define (list->q lst) + "Makes a queue composed of LST items" + (let ((q (make-q))) + (for-each + (lambda (x) + (enq! q x)) + lst) + q)) + +(define (make-q* . args) + "Makes a queue and populates it with this invocation's ARGS" + (list->q args)) ;;; Schedule