From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [bug] cannot extract just one column of table for use in gnuplot src block Date: Mon, 24 Mar 2014 08:22:50 +0000 Message-ID: <87fvm8xaxx.fsf@ucl.ac.uk> References: <871txs2a3o.fsf@ucl.ac.uk> <87bnwwst0d.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS09s-0006an-LV for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:23:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS09m-00050Y-W6 for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:23:00 -0400 Received: from mail-am1lp0013.outbound.protection.outlook.com ([213.199.154.13]:7953 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS09m-0004yq-Mr for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:22:54 -0400 In-Reply-To: <87bnwwst0d.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 23 Mar 2014 18:51:30 +0100") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Eric S Fraga writes: >> The trace shows that the column has been extracted exactly as I >> wish. > > No, the column has been extracted as a vector, not a table. Yes, true; what I meant was that the data extracted were the data I expected to be extracted. The structure may be wrong. >> However, it would appear that the function may expect a sequence >> and not just a single element? > > A table line is a list or a symbol, at the point of the error only a > list may be present. However, due to "data" being a vector, you'll get > a number. That's easy enough to guard for in that function, but the bug > is much further up the call chain, most likely in > org-babel-gnuplot-process-vars. Something along the line of the > following patch might be in order: This patch seems to work. Thanks! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-831-gcb9172.dirty