ob-core: allow language specific header arguments in properties
commit693dda67e60530c9f7b2510f44f6d14595473e28
authorAchim Gratz <Stromeko@Stromeko.DE>
Fri, 7 Jun 2013 20:19:38 +0000 (7 22:19 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Mon, 10 Jun 2013 18:53:19 +0000 (10 20:53 +0200)
treef8b082ae75032f1b7c960d016370e865be5fad1b
parent2e4bcfc50db4ebe804903c624f53f044543dc21f
ob-core: allow language specific header arguments in properties

* lisp/ob-core.el (org-babel-insert-header-arg,
  org-babel-parse-src-block-match): Replace `if' with empty else part
  by `when' for readability.  (org-babel-params-from-properties):
  Inquire for language specific and default header properties.
  Language specific header properties take precedence over default
  header properties and old-style header property specifications.

This allows for header arguments to be specified as
properties (including inheritance).

#+PROPERTY: header-args :cache "no"
#+PROPERTY: header-args:R :session "*R-property*"

:PROPERTIES:
:header-args:   :cache "yes"
:header-args:R: :session "*R-drawer*"
:END:
lisp/ob-core.el