|
From: | Christian Moe |
Subject: | Re: [O] [Babel][Bug] Inconsistent output from babel function depending on how called |
Date: | Thu, 26 May 2011 21:17:47 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
No, this is expected (if possibly under-documented behavior). The :results header arguments are associated with the code block and *not* with the #+call line. To get the desired behavior, you must specify the :results header argument on the #+call: line thusly. #+call: print_list(lst=list1) :results output org Best -- Eric
Hi,I recently made the same mistake, and it took me a while to figure things out. I had assumed #+CALLs inherited all the header arguments from the code blocks they referenced.
Regarding documentation, I see now that the correct behavior is at least implicitly documented in the first example at [[info:org#Header%20arguments%20in%20function%20calls]].
It might rate an explicit explanation at [[info:org#Evaluating%20code%20blocks]] as well, though.
Yours, Christian
[Prev in Thread] | Current Thread | [Next in Thread] |