aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-25 13:54:21 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-25 13:54:21 +0100
commit86ae14bfadb987b1a2ce6039d41683e48f8f6e5b (patch)
treef997b9dedaadf94b2173f4b84d096340448f61e4 /module
parentUpdate make-vcomponent to allow VIRTUAL components. (diff)
downloadcalp-86ae14bfadb987b1a2ce6039d41683e48f8f6e5b.tar.gz
calp-86ae14bfadb987b1a2ce6039d41683e48f8f6e5b.tar.xz
Replace one filter.
Diffstat (limited to 'module')
-rwxr-xr-xmodule/main.scm4
-rw-r--r--module/util.scm2
2 files changed, 4 insertions, 2 deletions
diff --git a/module/main.scm b/module/main.scm
index 223b3d2e..30fd4542 100755
--- a/module/main.scm
+++ b/module/main.scm
@@ -37,13 +37,13 @@
trimmed)))
; TODO show truncated string
-
(define (main-loop regular-events repeating-events)
(define time (date->time-utc (current-date)))
(define cur-event 0)
(let loop ((char #\nul))
(let ((events
- (merge (filter-sorted
+ ;; TODO change back to filter-sorted once it's fixed
+ (merge (filter ;-sorted
(cut event-in? <> time)
regular-events)
diff --git a/module/util.scm b/module/util.scm
index 6f1b955a..f60986ed 100644
--- a/module/util.scm
+++ b/module/util.scm
@@ -154,6 +154,8 @@
;; seeds:
(car items) '())))
+;; TODO This might be utterly broken, do some real tests on it
+;; (and then run equivalent tests on the stream variant)
(define-public (filter-sorted proc list)
(take-while
proc (drop-while