From accd3cc7cf5c008cecabf5cea07799569a9bfbed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 13 Jun 2020 02:37:20 +0200 Subject: Fix unless-clauses in make-extenders. --- module/vcomponent/recurrence/generate.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/vcomponent/recurrence/generate.scm') diff --git a/module/vcomponent/recurrence/generate.scm b/module/vcomponent/recurrence/generate.scm index acc45b33..0b49f96b 100644 --- a/module/vcomponent/recurrence/generate.scm +++ b/module/vcomponent/recurrence/generate.scm @@ -51,8 +51,8 @@ [('unless pred field) `(let ((yearday (,(by-proc 'yearday) ,rr)) (monthday (,(by-proc 'monthday) ,rr))) - ,(if pred #f - (it field)))] + (if ,pred #f + ,(self field)))] [field `(and=> (,(by-proc field) ,rr) ,(if extender? @@ -74,7 +74,8 @@ (define (all-extenders rrule) (make-extenders rrule - [YEARLY || month weekno yearday monthday (unless (or yearday monthday) day) + [YEARLY || month weekno yearday monthday + (unless (or yearday monthday) day) hour minute second] [MONTHLY || monthday (unless monthday day) hour minute second] [WEEKLY || day hour minute second] -- cgit v1.2.3