summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2013-04-01 01:42:24 -0400
committerEric Schulte <schulte.eric@gmail.com>2013-04-03 09:17:26 -0600
commit09e52738e9979a4a8a24d4a6cf398a4aa14626da (patch)
tree0405e9bda9eab6baaf6640e29ece946f32274d3c
parent5b3508698bae853173984974d67b3431e7b621bc (diff)
downloadorg-mode-09e52738e9979a4a8a24d4a6cf398a4aa14626da.tar.gz
Document how :var introduces code block dependencies.
* doc/org.texi: Document how :var introduces code block dependencies.
-rw-r--r--doc/org.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/org.texi b/doc/org.texi
index 3d8afe7..7c02a5c 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -13211,6 +13211,15 @@ include anything in the Org mode file that takes a @code{#+NAME:},
@code{#+BEGIN_EXAMPLE} blocks, other code blocks, and the results of other
code blocks.
+When a reference is made to another code block, the referenced block will be
+evaluated whenever needed, in order to supply its value to the referencing
+block. If the referenced block is cached (see @ref{cache}), its value will
+be reused if possible, instead of being re-calculated. If the referring code
+block is cached, its hash value will depend on the value of all the code
+blocks it references. This system can thus be used to create a system of
+as-needed re-evaluation among code blocks similar to that provided by
+@uref{http://yihui.name/knitr/, knitr} or Sweave.
+
Argument values can be indexed in a manner similar to arrays (see @ref{var,
Indexable variable values}).