fix babel merge params bug from commit 693dda67
commita79fd4be2863a300c88218b40b1adca23d9e1eb8
authorEric Schulte <schulte.eric@gmail.com>
Thu, 20 Jun 2013 15:53:56 +0000 (20 09:53 -0600)
committerEric Schulte <schulte.eric@gmail.com>
Thu, 20 Jun 2013 15:53:56 +0000 (20 09:53 -0600)
tree20d73cab74f8acc0e0bc778f541e0620b1250dda
parentbd987e3804eba79d864de929bf5fed9480167741
fix babel merge params bug from commit 693dda67

  The `org-babel-params-from-properties' command was calling
  `org-babel-merge-params', the output of which was then being fed back
  to another call to `org-babel-merge-params'.  The merge params
  function is not designed to allow this form of recursive calling, and
  as a result many variables were being set to empty values.

  The first noticed side effect of this bug was the breakage of the
  org-babel-load-file command, which relies on default header
  arguments (namely :tangle), which were overwritten by the bug above.

  The fix involved having the `org-babel-params-from-properties'
  function return a list of alists, which may then all be handed to the
  top-level merge-params call.

* lisp/ob-core.el (org-babel-params-from-properties): Now returns a list
  of alists and does *not* call `org-babel-merge-params'.
  (org-babel-parse-src-block-match): Handle new list of lists output of
  `org-babel-params-from-properties'.
  (org-babel-parse-inline-src-block-match): Handle new list of lists
  output of `org-babel-params-from-properties'.
* lisp/ob-exp.el (org-babel-exp-src-block): Handle new list of lists
  output of `org-babel-params-from-properties'.
  (org-babel-exp-non-block-elements): Handle new list of lists output of
  `org-babel-params-from-properties'.
* lisp/ob-lob.el (org-babel-lob-execute): Handle new list of lists
  output of `org-babel-params-from-properties'.
lisp/ob-core.el
lisp/ob-exp.el
lisp/ob-lob.el