aboutsummaryrefslogtreecommitdiff
path: root/module/entry-points
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-12-24 01:06:43 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-12-24 01:06:43 +0100
commit54bc4d547361a065f283720e6c0aee5fcb9268a8 (patch)
tree2f0cd3b1814bc036301a63880d0740b447af4143 /module/entry-points
parentFix ical outuput for with recurrence-id:s. (diff)
downloadcalp-54bc4d547361a065f283720e6c0aee5fcb9268a8.tar.gz
calp-54bc4d547361a065f283720e6c0aee5fcb9268a8.tar.xz
ICAL handling of events different from display handling.
Previously repeating events where always instantiated to a stream of all events to come (possibly infinite), and then zipped with the list of regular events to create a stream of all events in the world. This commit allows access to the raw lists of parsed regular and repeating events before they are extrapolated and merged.
Diffstat (limited to 'module/entry-points')
-rw-r--r--module/entry-points/ical.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/entry-points/ical.scm b/module/entry-points/ical.scm
index 99253160..92d0d31c 100644
--- a/module/entry-points/ical.scm
+++ b/module/entry-points/ical.scm
@@ -2,7 +2,7 @@
:export (main)
:use-module (util)
:use-module (output ical)
- :use-module ((vcomponent) :select (load-calendars))
+ :use-module ((vcomponent) :select (load-calendars*))
:use-module ((parameters) :select (calendar-files))
:use-module (ice-9 getopt-long)
:use-module (srfi srfi-19)
@@ -21,10 +21,10 @@
(define end (cond [(option-ref opts 'to #f) => parse-freeform-date]
[else (normalize-date* (set (date-month start) = (+ 1)))]))
- (define-values (calendars events)
- (load-calendars
- calendar-files: (cond [(option-ref opts 'file #f) => list]
- [else (calendar-files)]) ))
+ ;; TODO this contains repeated events multiple times
+ (define-values (calendars regular repeating)
+ (load-calendars* calendar-files: (cond [(option-ref opts 'file #f) => list]
+ [else (calendar-files)]) ))
- (ical-main calendars events start end)
+ (ical-main calendars regular repeating start end)
)