On Sat, 23 Jul 2016, Nicolas Goaziou wrote:
Hello,
"Charles C. Berry" <ccbe...@ucsd.edu> writes:
IIUC, one result is that header args in the src block being called take
precedence over default header args. More below.
[...]
I am not sure I find this new behavior to be an improvement.
Having default header args to take precedence over local ones seems
counter-intuitive. It makes it harder to override them, and harder to
reason about the current active headers.
OTOH, inheriting :exports property may not be optimal. In particular,
":exports code" for a Babel call is probably nonsensical. Perhaps
a solution would be to keep the current behaviour and make an exception
for :exports, which would always be `results' for Babel calls.
WDYT?
I think that would work well enough.
Although I might quibble about what 'local' means here. If the src block
is under a headline called XYZ with a `header-args' property of `:eval no'
and the babel call is under headline ABC with no header-args
property, I think some would expect the default to take precedence for
calls under ABC over the property in XYZ.
Chuck