aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-24 17:35:09 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-24 17:35:09 +0200
commitff16d94cc56e4729d55936cd8460e1940081f03f (patch)
tree49e7189caeb516ff255d9cb16decd3b90b77a6ea /module/vcomponent.scm
parentError on failed save. (diff)
downloadcalp-ff16d94cc56e4729d55936cd8460e1940081f03f.tar.gz
calp-ff16d94cc56e4729d55936cd8460e1940081f03f.tar.xz
Use X-HNH-REMOVED to "remove" an event.
Diffstat (limited to 'module/vcomponent.scm')
-rw-r--r--module/vcomponent.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/vcomponent.scm b/module/vcomponent.scm
index 9b5f944c..215ab984 100644
--- a/module/vcomponent.scm
+++ b/module/vcomponent.scm
@@ -32,8 +32,10 @@
(setf 'events
(concatenate
;; TODO does this drop events?
- (map (lambda (cal) (filter (lambda (o) (eq? 'VEVENT (type o)))
- (children cal)))
+ (map (lambda (cal) (remove
+ (extract 'X-HNH-REMOVED)
+ (filter (lambda (o) (eq? 'VEVENT (type o)))
+ (children cal))))
(getf 'calendars))))
(let* ((repeating regular (partition repeating? (getf 'events))))