瀏覽代碼

doc: passing variables to #+call: lines

* doc/org.texi (Evaluating code blocks): More explicit about how to
  pass variables to #+call lines.
Eric Schulte 15 年之前
父節點
當前提交
b092d31d68
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      doc/org.texi

+ 12 - 0
doc/org.texi

@@ -11376,6 +11376,18 @@ blocks located in the current Org-mode buffer or in the ``Library of Babel''
 #+lob: <name>(<arguments>) <header arguments>
 @end example
 
+All variable (@code{:var}) header arguments can be placed in the
+@code{<arguments>} section using normal function call syntax. For example:
+
+@example
+#+source: double
+#+begin_src emacs-lisp :var n=2
+  (* n 2)
+#+end_src
+
+#+call: double(n=3)
+@end example
+
 @table @code
 @item <name>
 The name of the code block to be evaluated.