1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-26 07:33:39 +00:00
org-mode/testing/examples
Nicolas Berthier 795c004396 ob: Support for exporting inline source code
* lisp/ob-exp.el (org-babel-exp-inline-code-template): New
customizable variable to export inline source code (similar to
`org-babel-exp-code-template').
(org-babel-exp-code): New `type' argument to differentiate between
inline and standard code blocks.

* lisp/ob-core.el (org-babel-inline-src-block-regexp): Allow empty set
of switches and header arguments as in "src_sh[]{echo foo;}".  Also
permit spaces before them.

* testint/lisp/test-org-element.el
(test-org-element/inline-src-block-parser): Test extended syntax for
inline source code.

* testing/lisp/test-ob-exp.el (ob-exp/exports-inline-code): New
function for testing inline source code handling.  Also add three new
failing tests exhibiting unexpected results with ":results code"
switches.

* testing/lisp/test-ob.el
(test-org-babel/org-babel-get-inline-src-block-matches): Test for
inline source blocks with empty header arguments.

* testing/examples/babel.org: New sections for testing (i) exported
inline source code (used by `ob-exp/exports-inline-code'); (ii)
parsing inline source blocks with empty header arguments (used by
`test-org-babel/org-babel-get-inline-src-block-matches').

Until now pieces of inline source code were handled as standard code
blocks during export.  These changes enable them to be exported.
2014-08-22 14:39:38 +02:00
..
babel-dangerous.org change this failing test so that it no longer fails 2013-04-03 11:30:14 -06:00
babel.org ob: Support for exporting inline source code 2014-08-22 14:39:38 +02:00
include2.org Fix the maint branch. 2012-03-19 20:27:28 +01:00
include.html ox: implement additional #+INCLUDE markup 2014-06-07 18:02:52 +02:00
include.org Fix the maint branch. 2012-03-19 20:27:28 +01:00
link-in-heading.org
links.org Add links.org to testing/examples/ 2011-01-17 18:23:45 +01:00
macro-templates.org Remove useless data in test file 2012-10-10 22:46:50 +02:00
no-heading.org
normal.org Fix the master branch. 2012-03-19 22:01:29 +01:00
ob-awk-test.in Awk can be called with no in-file: and no :stdin 2011-07-24 14:05:55 -06:00
ob-awk-test.org awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
ob-C-test.org Babel C, C++, D support for non-homogeneous input tables 2014-06-08 19:20:16 -04:00
ob-fortran-test.org Add a matrix input to ob-fortran.el 2013-06-03 22:56:23 -06:00
ob-header-arg-defaults.org testing: provide tests for header-args[:lang] properties 2013-06-23 19:35:15 +02:00
ob-lilypond-broken.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-broken.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.error ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-maxima-test.org fix whitespace errors 2011-11-08 13:52:11 -07:00
ob-octave-test.org ob-octave.el: Add graphical output 2011-12-17 09:04:20 -07:00
ob-screen-test.org Map "screen" to shell-script-mode 2012-01-20 11:47:13 -07:00
ob-shell-test.org ob-shell.el: export vars as arrays for 'sh' code blocks 2014-04-14 21:24:00 -06:00
org-exp.org test of comma stripping behavior 2011-09-06 21:58:51 -06:00
property-inheritance.org property names ending in plus accumulate 2011-11-15 08:56:24 -07:00
setupfile.org ox: Handle BIND keywords in SETUPFILE files 2013-03-29 21:51:57 +01:00