projects
/
8sync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cabcb05
)
Add %8sync-run sugar and friends
author
Christopher Allan Webber
<cwebber@dustycloud.org>
Sun, 29 Nov 2015 18:14:51 +0000
(12:14 -0600)
committer
Christopher Allan Webber
<cwebber@dustycloud.org>
Sun, 29 Nov 2015 18:14:51 +0000
(12:14 -0600)
* 8sync/agenda.scm (%8sync-run, %8sync-run-at): New variables
(%8sync-run-delay, %8sync-port): New variables
8sync/agenda.scm
patch
|
blob
|
history
diff --git
a/8sync/agenda.scm
b/8sync/agenda.scm
index 3c4270fa1ab99a1fe66c0d9e1801e2584755cc19..aded0d56f2230a84c31c11d8b23bec5c4f440377 100644
(file)
--- a/
8sync/agenda.scm
+++ b/
8sync/agenda.scm
@@
-66,7
+66,8
@@
run-it wrap wrap-apply run run-at run-delay
run-it wrap wrap-apply run run-at run-delay
- %port-request %run %run-at %run-delay
+ %run %run-at %run-delay %port-request
+ %8sync-run %8sync-run-at %8sync-run-delay %8sync-port
catch-8sync catch-%8sync
catch-8sync catch-%8sync
@@
-552,6
+553,24
@@
return the wrong thing via (%8sync) and trip themselves up."
(list (make-port-request port-request-args ...)
(make-run-request kont)))))
(list (make-port-request port-request-args ...)
(make-run-request kont)))))
+;; Sugar
+(define-syntax-rule (%8sync-run rest ...)
+ "Sugar for (%8sync (%run ...))"
+ (%8sync (%run rest ...)))
+
+(define-syntax-rule (%8sync-run-at rest ...)
+ "Sugar for (%8sync (%run-at ...))"
+ (%8sync (%run-at rest ...)))
+
+(define-syntax-rule (%8sync-run-delay rest ...)
+ "Sugar for (%8sync (%run-delay ...))"
+ (%8sync (%run-delay rest ...)))
+
+(define-syntax-rule (%8sync-port rest ...)
+ "Sugar for (%8sync (%port-request ...))"
+ (%8sync (%port-request rest ...)))
+
+
;; TODO: Write (%run-immediately)
;; TODO
;; TODO: Write (%run-immediately)
;; TODO