|
@@ -205,7 +205,7 @@ would then be [[#sandbox][the sandbox]].
|
|
|
but should larger amounts of output be in a
|
|
but should larger amounts of output be in a
|
|
|
\#+begin_example...\#+end_example block? What's the cutoff? > 1 line?
|
|
\#+begin_example...\#+end_example block? What's the cutoff? > 1 line?
|
|
|
** TODO make tangle files read-only?
|
|
** TODO make tangle files read-only?
|
|
|
- With a file-local variable setting?
|
|
|
|
|
|
|
+ With a file-local variable setting?
|
|
|
** TODO take default values for header args from properties
|
|
** TODO take default values for header args from properties
|
|
|
Use file-wide and subtree wide properties to set default values for
|
|
Use file-wide and subtree wide properties to set default values for
|
|
|
header args.
|
|
header args.
|
|
@@ -2027,15 +2027,89 @@ This is currently working only with emacs lisp as in the following
|
|
|
example in the [[* emacs lisp source reference][emacs lisp source reference]].
|
|
example in the [[* emacs lisp source reference][emacs lisp source reference]].
|
|
|
|
|
|
|
|
|
|
|
|
|
-* Bugs [18/23]
|
|
|
|
|
|
|
+** TODO Add languages [1/6]
|
|
|
|
|
+I'm sure there are many more that aren't listed here. Please add
|
|
|
|
|
+them, and bubble any that you particularly care about up to the top.
|
|
|
|
|
+
|
|
|
|
|
+Any new language should be implemented in a org-babel-lang.el file.
|
|
|
|
|
+Follow the pattern set by [[file:lisp/org-babel-script.el][org-babel-script.el]], [[file:lisp/org-babel-shell.el][org-babel-shell.el]] and
|
|
|
|
|
+[[file:lisp/org-babel-R.el][org-babel-R.el]].
|
|
|
|
|
+
|
|
|
|
|
+*** TODO perl
|
|
|
|
|
+This could probably be added to [[file:lisp/org-babel-script.el][org-babel-script.el]]
|
|
|
|
|
+
|
|
|
|
|
+*** TODO java
|
|
|
|
|
+
|
|
|
|
|
+*** DONE ditaa
|
|
|
|
|
+(see [[* file result types][file result types]])
|
|
|
|
|
+
|
|
|
|
|
+#+srcname: implementing-ditaa
|
|
|
|
|
+#+begin_src ditaa :results replace :file blue.png :cmdline -r
|
|
|
|
|
++---------+
|
|
|
|
|
+| cBLU |
|
|
|
|
|
+| |
|
|
|
|
|
+| +----+
|
|
|
|
|
+| |cPNK|
|
|
|
|
|
+| | |
|
|
|
|
|
++----+----+
|
|
|
|
|
+#+end_src
|
|
|
|
|
+
|
|
|
|
|
+#+resname:
|
|
|
|
|
+[[file:blue.png][blue.png]]
|
|
|
|
|
+
|
|
|
|
|
+*** STARTED gnuplot
|
|
|
|
|
+(see [[* file result types][file result types]])
|
|
|
|
|
+
|
|
|
|
|
+- a =file= header argument
|
|
|
|
|
+- a =cmdline= header argument
|
|
|
|
|
+- to add variables
|
|
|
|
|
+ - scalar variables should be replaced in the body of the gnuplot code
|
|
|
|
|
+ - vector variables should be exported to tab-separated files, and
|
|
|
|
|
+ the variable names should be replaced with the path to the files
|
|
|
|
|
+
|
|
|
|
|
+#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]"
|
|
|
|
|
+#+TBLNAME: gnuplot-data
|
|
|
|
|
+| independent var | first dependent var | second dependent var |
|
|
|
|
|
+|-----------------+---------------------+----------------------|
|
|
|
|
|
+| 0.1 | 0.425 | 0.375 |
|
|
|
|
|
+| 0.2 | 0.3125 | 0.3375 |
|
|
|
|
|
+| 0.3 | 0.24999993 | 0.28333338 |
|
|
|
|
|
+| 0.4 | 0.275 | 0.28125 |
|
|
|
|
|
+| 0.5 | 0.26 | 0.27 |
|
|
|
|
|
+| 0.6 | 0.25833338 | 0.24999993 |
|
|
|
|
|
+| 0.7 | 0.24642845 | 0.23928553 |
|
|
|
|
|
+| 0.8 | 0.23125 | 0.2375 |
|
|
|
|
|
+| 0.9 | 0.23333323 | 0.2333332 |
|
|
|
|
|
+| 1 | 0.2225 | 0.22 |
|
|
|
|
|
+| 1.1 | 0.20909075 | 0.22272708 |
|
|
|
|
|
+| 1.2 | 0.19999998 | 0.21458333 |
|
|
|
|
|
+| 1.3 | 0.19615368 | 0.21730748 |
|
|
|
|
|
+
|
|
|
|
|
+#+srcname: implementing-gnuplot
|
|
|
|
|
+#+begin_src gnuplot :var data=gnuplot-data
|
|
|
|
|
+set title "Implementing Gnuplot"
|
|
|
|
|
+plot "data" using 1:2 with lines
|
|
|
|
|
+#+end_src
|
|
|
|
|
+
|
|
|
|
|
+*** TODO dot
|
|
|
|
|
+(see [[* file result types][file result types]])
|
|
|
|
|
+
|
|
|
|
|
+*** TODO asymptote
|
|
|
|
|
+(see [[* file result types][file result types]])
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+* Bugs [19/30]
|
|
|
|
|
+** TODO o-b-execute-subtree overwrites some buffer contents
|
|
|
|
|
+*** Try M-x org-babel-execute-subtree with point at the beginning of this line
|
|
|
|
|
+#+begin_src sh
|
|
|
|
|
+b=2
|
|
|
|
|
+#+end_src
|
|
|
|
|
+
|
|
|
** TODO Allow source blocks to be recognised when #+ are not first characters on the line
|
|
** TODO Allow source blocks to be recognised when #+ are not first characters on the line
|
|
|
I think Carsten has recently altered the core so that #+ can have
|
|
I think Carsten has recently altered the core so that #+ can have
|
|
|
preceding whitespace, at least for literal/code examples. org-babel
|
|
preceding whitespace, at least for literal/code examples. org-babel
|
|
|
should support this.
|
|
should support this.
|
|
|
|
|
|
|
|
-** TODO fold source blocks on #+srcname line?
|
|
|
|
|
- I.e., as well as on #+begin_src line.
|
|
|
|
|
-
|
|
|
|
|
** TODO non-orgtbl formatted lists
|
|
** TODO non-orgtbl formatted lists
|
|
|
for example
|
|
for example
|
|
|
|
|
|
|
@@ -2090,21 +2164,20 @@ the same for the other languages. [Dan]
|
|
|
** TODO are the org-babel-trim s necessary?
|
|
** TODO are the org-babel-trim s necessary?
|
|
|
at the end of e.g. org-babel-R-evaluate, org-babel-python-evaluate, but
|
|
at the end of e.g. org-babel-R-evaluate, org-babel-python-evaluate, but
|
|
|
not org-babel-ruby-evaluate
|
|
not org-babel-ruby-evaluate
|
|
|
-** results branch bugs
|
|
|
|
|
-*** TODO elisp reference fails for literal number
|
|
|
|
|
|
|
+** TODO elisp reference fails for literal number
|
|
|
#+srcname: elisp-test(a=4)
|
|
#+srcname: elisp-test(a=4)
|
|
|
#+begin_src emacs-lisp
|
|
#+begin_src emacs-lisp
|
|
|
(message a)
|
|
(message a)
|
|
|
#+end_src
|
|
#+end_src
|
|
|
-*** TODO use new merge function [[file:lisp/org-babel-ref.el::t%20nil%20org%20combine%20plists%20args%20nil][here]] and [[file:lisp/org-babel.el::params%20org%20combine%20plists%20params%20third%20info][here]]?
|
|
|
|
|
- And at other occurrences of org-combine-plists?
|
|
|
|
|
-*** TODO LoB: with output to buffer, not working in buffers other than library-of-babel.org
|
|
|
|
|
- I haven't fixed this yet. org-babel-ref-resolve-reference moves
|
|
|
|
|
- point around, inside a save-excursion. Somehow when it comes to
|
|
|
|
|
- inserting the results (after possible further recursive calls to
|
|
|
|
|
- org-babel-ref-resolve-reference), point hasn't gone back to the
|
|
|
|
|
- lob line.
|
|
|
|
|
-*** TODO LoB: output to buffer adds creeping blank lines
|
|
|
|
|
|
|
+** TODO use new merge function [[file:lisp/org-babel-ref.el::t%20nil%20org%20combine%20plists%20args%20nil][here]]?
|
|
|
|
|
+ And at other occurrences of org-combine-plists?
|
|
|
|
|
+** TODO LoB: with output to buffer, not working in buffers other than library-of-babel.org
|
|
|
|
|
+ I haven't fixed this yet. org-babel-ref-resolve-reference moves
|
|
|
|
|
+ point around, inside a save-excursion. Somehow when it comes to
|
|
|
|
|
+ inserting the results (after possible further recursive calls to
|
|
|
|
|
+ org-babel-ref-resolve-reference), point hasn't gone back to the
|
|
|
|
|
+ lob line.
|
|
|
|
|
+** TODO LoB: output to buffer adds creeping blank lines
|
|
|
Compare the results of
|
|
Compare the results of
|
|
|
#+lob: python-add(a=5, b=17)
|
|
#+lob: python-add(a=5, b=17)
|
|
|
|
|
|
|
@@ -2456,7 +2529,6 @@ As an example eval the following. Adding a line to test
|
|
|
ar.first.first
|
|
ar.first.first
|
|
|
#+end_src
|
|
#+end_src
|
|
|
|
|
|
|
|
-
|
|
|
|
|
** DONE space trailing language name
|
|
** DONE space trailing language name
|
|
|
fix regexp so it works when there's a space trailing the language name
|
|
fix regexp so it works when there's a space trailing the language name
|
|
|
|
|
|