org-mode/lisp
Nicolas Goaziou dbb375fdfc Simplify Babel calls evaluation
* lisp/ob-lob.el (org-babel-default-lob-header-args): Merge value with
  `org-babel-default-header-args' since this variable is meant to
  replace the latter.
(org-babel-lob-ingest): Make sure `org-babel-default-lob-header-args' is
used instead of `org-babel-default-header-args'.
(org-babel-lob--src-info): New function.
(org-babel-lob-get-info): Use new function.  Make return value
a replacement for `org-babel-get-src-block-info'.
(org-babel-lob-execute): Use `org-babel-execute-src-block' instead of
duplicating functionalities.
* lisp/ob-exp.el (org-babel-exp-process-buffer): Apply changes to
  `org-babel-lob-get-info' return value.

* testing/examples/ob-header-arg-defaults.org:
* testing/lisp/test-ob-header-arg-defaults.el (test-ob-header-arg-defaults/tree/accumulate/call):
(test-ob-header-arg-defaults/tree/complex/call):
(test-ob-header-arg-defaults/tree/overwrite/call):
* testing/lisp/test-ob-lob.el (test-ob-lob/caching-call-line):
(test-ob-lob/named-caching-call-line): Update tests.

The purpose of this commit is to make Babel calls more
predictable (e.g., wrt property inheritance) and to remove code
duplication.  Also, Babel calls results are no longer treated as Emacs
Lisp values.
2016-06-16 23:15:01 +02:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-C.el ob-C: Add :libs to babel C++ 2016-03-26 00:32:56 +01:00
ob-J.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-R.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-abc.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-asymptote.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-awk.el Fix up last backport 2016-05-15 18:59:19 -04:00
ob-calc.el Remove some XEmacs compatibility layer 2016-05-26 11:30:11 +02:00
ob-clojure.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-comint.el ob-comint: Remove unnecessary function declarations 2016-05-15 19:57:17 -04:00
ob-coq.el ox-coq.el: Clean up 2016-02-11 08:54:03 +01:00
ob-core.el org-babel-goto-named-src-block bugfix 2016-06-14 09:40:35 -07:00
ob-css.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-ditaa.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-dot.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-ebnf.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-emacs-lisp.el ob-emacs-lisp: Defaut binding is dynamic 2016-04-20 23:45:32 +02:00
ob-eval.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-exp.el Simplify Babel calls evaluation 2016-06-16 23:15:01 +02:00
ob-forth.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-fortran.el Merge branch 'maint' 2016-02-03 23:37:26 -05:00
ob-gnuplot.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-groovy.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-haskell.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-io.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-java.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-js.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-keys.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-latex.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-ledger.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-lilypond.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-lisp.el ob-lisp: Fix error when evaluating a lisp src-block 2016-04-13 23:29:41 +02:00
ob-lob.el Simplify Babel calls evaluation 2016-06-16 23:15:01 +02:00
ob-makefile.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-matlab.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-maxima.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-mscgen.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-ocaml.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-octave.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-org.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-perl.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-picolisp.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-plantuml.el ob-plantuml: Add new output formats 2016-05-03 19:13:50 +02:00
ob-processing.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-python.el Remove some XEmacs compatibility layer 2016-05-26 11:30:11 +02:00
ob-ref.el ob-ref: Remove unnecessary function declarations 2016-06-16 22:34:12 +02:00
ob-ruby.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-sass.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-scala.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-scheme.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-screen.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-sed.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-shell.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
ob-shen.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-sql.el ob-sql.el: fix typo preventing mysql table headers from being parsed 2016-02-09 22:16:53 +01:00
ob-sqlite.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-stan.el Update copyright years for master-only files 2016-01-10 12:07:40 -05:00
ob-table.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ob-tangle.el Fix remaining declare-function issues 2016-05-15 18:59:20 -04:00
ob.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-agenda.el Rename org-deadline-is-close to have -p suffix 2016-06-04 20:39:15 +02:00
org-archive.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-attach.el org-attach: Use relative path for git annex 2016-04-10 10:13:57 +02:00
org-bbdb.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-bibtex.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
org-capture.el Merge branch 'maint' 2016-05-16 11:21:05 +02:00
org-clock.el Fix a compiler warning 2016-06-14 20:49:20 +02:00
org-colview.el org-colview: Fix docstrings 2016-06-04 21:29:27 +02:00
org-compat.el org-compat: Silence byte-compiler 2016-06-04 22:09:15 +02:00
org-crypt.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-ctags.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-datetree.el Silence byte-compiler 2016-01-13 11:43:54 +01:00
org-docview.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-element.el org-element: Small fix 2016-06-16 22:34:12 +02:00
org-entities.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-eshell.el Update copyright years 2016-01-09 17:12:03 -05:00
org-faces.el Document org-block face changes 2016-06-10 10:11:03 +02:00
org-feed.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-footnote.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-gnus.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
org-habit.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-id.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-indent.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-info.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
org-inlinetask.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Update copyright years 2016-01-09 17:12:03 -05:00
org-lint.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-list.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-macro.el org-macro: Use cl-lib 2016-05-26 16:16:31 +02:00
org-macs.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-mhe.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-mobile.el Properly handle `org-tag-persistent-alist' 2016-04-18 18:07:40 +02:00
org-mouse.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-pcomplete.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
org-plot.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-protocol.el Merge branch 'maint' 2016-05-15 19:00:30 -04:00
org-rmail.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
org-src.el org-src: Allow per language block face 2016-06-10 09:20:30 +02:00
org-table.el org-table: Add missing "cl-" prefixes 2016-05-26 16:12:42 +02:00
org-timer.el org-timer: User can always set timer by prefix arg 2016-06-14 21:49:44 +02:00
org-w3m.el Update copyright years 2016-01-09 17:12:03 -05:00
org.el Merge branch 'maint' 2016-06-11 13:40:52 +02:00
ox-ascii.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
ox-beamer.el ox-beamer: Do not require `cl' since `cl-lib' is used 2016-05-26 15:57:11 +02:00
ox-html.el ox: Provide offset to [+-]n in SRC/EXAMPLE export 2016-05-24 21:40:35 +02:00
ox-icalendar.el ox-icalendar: Do not require `cl' since `cl-lib' is used 2016-05-26 16:08:15 +02:00
ox-latex.el ox-latex: Use "cl-lib" 2016-05-26 11:03:11 +02:00
ox-man.el Remove some XEmacs compatibility layer 2016-05-26 11:30:11 +02:00
ox-md.el Merge branch 'maint' 2016-01-09 17:43:27 -05:00
ox-odt.el Remove final parts of XEmacs compatibility code 2016-05-26 13:56:25 +02:00
ox-org.el ox-org: Add footnote prefix 2016-05-25 08:51:13 +02:00
ox-publish.el ox-publish: Correct docstring typo 2016-05-18 22:05:41 -04:00
ox-texinfo.el ox-texinfo: Add support for strike-through and underline markup 2016-06-04 22:40:21 +02:00
ox.el ox: Fix typo 2016-06-16 22:33:21 +02:00