aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-01-13 22:45:11 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-01-13 22:49:05 +0100
commit719df1b4e8b0ad90159caeec6948402598076d88 (patch)
tree6f12b4fab278c7e5ba0c1dc4cc7bb037ca5c4c8d /doc
parentAdd script for displaying test commentaries. (diff)
downloadcalp-719df1b4e8b0ad90159caeec6948402598076d88.tar.gz
calp-719df1b4e8b0ad90159caeec6948402598076d88.tar.xz
Document (vcompenent control).
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/calp.texi1
-rw-r--r--doc/ref/guile.texi17
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/ref/calp.texi b/doc/ref/calp.texi
index e280a455..e5c4baab 100644
--- a/doc/ref/calp.texi
+++ b/doc/ref/calp.texi
@@ -58,6 +58,7 @@ text @footnote{Improvements welcome}
@c * Index::
@c @end menu
+@include guile.texi
@include javascript.texi
@node Index
diff --git a/doc/ref/guile.texi b/doc/ref/guile.texi
new file mode 100644
index 00000000..8468021e
--- /dev/null
+++ b/doc/ref/guile.texi
@@ -0,0 +1,17 @@
+@node Guile
+@chapter Guile
+
+@c TODO
+This chapter will probably in the future be replaced by a proper
+system overview in the future.
+
+@c module (vcomponent control)
+
+@defmac with-replaced-properties (component (key value) ...) body ...
+Through the extent of @var{body} each @var{key}'s value in
+@var{component} is replaced by its repspective @var{value}.
+
+Note that @var{body} is guarded through a dynamic-wind, meaning that
+even non-local exits will restore @var{component} to its initial
+state.
+@end defmac