From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Process diagrams with dot and some glue using Org-mode Date: Fri, 28 Jun 2013 11:34:48 -0400 Message-ID: <5e6cbdf1d1de558009527836766630b7@mail.rickster.com> References: <2013-06-26T17-08-48@devnull.Karl-Voit.at> <5b90a6852c7b87d077016cbb0479ff23@mail.rickster.com> <2013-06-26T18-59-53@devnull.Karl-Voit.at> <4c174089656ce0b08177f464325c4bf9@mail.rickster.com> <2013-06-28T11-15-09@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsahH-0007IL-9z for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 11:34:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsahE-0005DL-PF for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 11:34:51 -0400 Received: from [204.62.15.78] (port=49313 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsahE-0005D4-LT for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 11:34:48 -0400 In-Reply-To: <2013-06-28T11-15-09@devnull.Karl-Voit.at> 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: news1142@karl-voit.at Cc: emacs-orgmode@gnu.org On 2013-06-28 05:20, Karl Voit wrote: > * Rick Frankel wrote: > > And here's a simplier version which uses a graph table in the > following format: > [...] > > I tried to use your solution with the "#+call:" method. > > Unfortunately, it fails and due to my limited ELISP knowledge, I can > not debug this issue. I've got the feeling that you might be able to > spot my error right away. > > #+call: graph-from-table(nodes=example-node-table,graph=example-graph) > > -> this results in "format: Wrong type argument: listp, hline" This is because of what seems to be a bug in babel -- :colnames options are not being respected in/for call lines. You always get the above error when trying to process a table in elisp and the header is not removed. The solution is to specify the range on the call: #+call: graph-from-table(nodes=example-node-table[2:-1],graph=example-graph[2:-1]) > > Note: I got the following additional parameters "in my pipeline" (want > to make them work) as well: > > :exports results :resname example-result :file > ~/tmp/2del/example-simple.png You will also need to specify results :file; and the filename as a parameter to the called block not the call. `Call's always export the results i believe (you can add :exports results to the orginal source block). #+call: graph-from-file[:file out.png](...) :results file I don't think there is a :resname option. There was a #+RESNAME: keyword, but it has been replaced w/ #+NAME:, which is currently not functional for call lines (but is a hot topic in another thread on the list.) rick