From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc-Oliver Ihm Subject: Re: [babel] #+call-line removes hlines and headings ? Date: Tue, 31 Jan 2012 19:45:25 +0100 Message-ID: <4F2836C5.7060209@online.de> References: <87ipju6b9b.fsf@med.uni-goettingen.de> <4F2555DF.8030808@online.de> <87zkd5yxv7.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsIhz-0001M0-Mv for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 13:45:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsIhv-0001tI-3h for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 13:45:35 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:52366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsIhu-0001sy-O7 for emacs-orgmode@gnu.org; Tue, 31 Jan 2012 13:45:31 -0500 In-Reply-To: <87zkd5yxv7.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Andreas Leha , emacs-orgmode@gnu.org Hi Eric, thanx ! That explains very clearly what I have seen, when trying to debug this phaenomenon. So this behaviour is by design and I can work around :-) kind regards, Marc Am 30.01.2012 17:10, schrieb Eric Schulte: > Marc-Oliver Ihm writes: > >> Am 29.01.2012 11:42, schrieb Andreas Leha: >>> :colnames yes >> Hi Andreas, >> >> Thanx, that is definitely a solution ! >> >> And I agree with you, that its a bit puzzling, that both cases behave differently; >> the #+call-line should just have the same result as the #+begin_src-line, to which after all >> it just refers. Beeing able to change the behaviour of the #+call-line >> with header arguments is >> of course a good thing, but it should not be necessary here in the first place. >> >> However, this would require a patch to the babel-code, which I am >> currently not able to produce, because I already >> got lost in debugging this problem :-) And of course I am not sure >> what would be the side effects of changing this >> behaviour ... >> >> So, thanx again for pointing out this very easy workaround ! >> >> >> with kind regards, Marc-Oliver Ihm >> > > To explain the cause (if not rationale) for the current behavior; when > executing a call line, an ephemeral code block is created at the point > of the call line. The result of the called function is passed into this > ephemeral block, and the output of the block is inserted into the > buffer. > > This is why call lines have *two* possible sets of header arguments, one > to pass to the original called code block, and one for local effect in > the ephemeral block. > > The reason the colnames header argument is required for the call line > and not the code block, is because hlines are only stripped when data > passes *into* a code block as a variable. In this case the 'hlines are > stripped when the table passes into the ephemeral code blocks. > > Hope the above is more illuminating that confusing, >