ob-core.el: allow the auto-generation of output file names for src blocks.
commit08e25967188f20ba92f6d0901212c9670b4724f9
authorAaron Ecay <aaronecay@gmail.com>
Tue, 22 Apr 2014 19:13:48 +0000 (22 15:13 -0400)
committerAaron Ecay <aaronecay@gmail.com>
Sun, 11 May 2014 20:33:22 +0000 (11 16:33 -0400)
treedb1184c0a9198b9f302a9585ab60f06168d1bbcb
parent7c8559e339e6870a555ce90dcfb495abce9ca57e
ob-core.el: allow the auto-generation of output file names for src blocks.

* lisp/ob-core.el (org-babel-generate-file-param): New function.
(org-babel-get-src-block-info): Use it.
(org-babel-merge-params): Handle :file-ext.
(org-babel-graphical-output-file): error if no :file or :file-ext.
* testing/lisp/test-ob.el (test-org-babel/file-ext-and-output-dir):
New test.
* doc/org.texi (Specific header arguments): Add doc for :file-ext and
:output-dir header args.
* lisp/ob-R.el (org-babel-expand-body:R): Don’t calculate
graphics-file.
(org-babel-execute:R): Only look for a graphics-file if needed.
doc/org.texi
lisp/ob-R.el
lisp/ob-core.el
testing/examples/babel.org
testing/lisp/test-ob.el