0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 06:32:53 +00:00
org-mode/contrib/babel/lisp
Dan Davison c84903f1b3 org-babel: export of functional-style source blocks
A "functional-style" source block is one in which the name is followed
immediately by a parenthesised argument. An example is the following
"function", which generates n uniform random numbers:

\#+srcname: rand(n)
\#+begin_src R
runif(n)
\#+end_src

With these changes, such source blocks are passed over to the export
machinery in the following form:

\#+begin_src org-babel-lob
<function-def-keyword> rand(n):
\#+end_src
\#+begin_src R <switches>
<indent>runif(n)
\#+end_src

where <function-def-keyword> is the value of
org-babel-function-def-export-keyword, which defaults to "function",
<switches> are the src block switches that belonged to the original
block, and <indent> is the whitespace indent of the function body, the
width of which is determined by org-babel-function-def-export-indent.
org-babel-lob is a simple major mode responsible for fontification of
the blocks corresponding to the function definition line (as opposed
to the function body).
2009-11-01 10:05:42 -05:00
..
langs org-babel-latex: initial support for exporting latex from org-babel 2009-10-28 16:13:53 -06:00
org-babel-comint.el merging with the org-babel repository 2009-09-11 13:44:05 -06:00
org-babel-exp.el org-babel: export of functional-style source blocks 2009-11-01 10:05:42 -05:00
org-babel-lob.el org-babel: export of functional-style source blocks 2009-11-01 10:05:42 -05:00
org-babel-ref.el org-babel: foreign-file references work, export is fully functional 2009-10-23 16:02:24 -06:00
org-babel-table.el merging with the org-babel repository 2009-09-11 13:44:05 -06:00
org-babel-tangle.el org-babel: Single function to return all source block info. 2009-11-01 10:05:42 -05:00
org-babel.el org-babel: include functional-style args in org-babel-get-src-block-info list 2009-11-01 10:05:42 -05:00