From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: extract a region from a table and export it Date: Fri, 17 Jun 2016 15:42:40 +0200 Message-ID: <877fdo9bjj.fsf@gmx.us> References: <87oa74vyma.fsf@mat.ucm.es> <87d1nkvuat.fsf@mat.ucm.es> <87oa733g28.fsf@gmx.us> <87porh2jp8.fsf@mat.ucm.es> <87porgyysf.fsf@mat.ucm.es> <87mvmkf3q8.fsf@gmx.us> <87k2ho7ykv.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDu2r-0003yX-UF for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDu2n-0000R3-P0 for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:48 -0400 Received: from mout.gmx.net ([212.227.15.15]:50436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDu2n-0000Q8-Dn for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:45 -0400 Received: from W530 ([46.166.188.200]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MEFIm-1bBdve3NWq-00FX08 for ; Fri, 17 Jun 2016 15:42:43 +0200 In-Reply-To: <87k2ho7ykv.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 17 Jun 2016 13:08:00 +0000") 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" To: emacs-orgmode@gnu.org Uwe Brauer writes: > > John Kitchin writes: > D> the problem seems to be that c0 and c2 are set to nil for some reason. I > > > Or > > > #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2] > > (cl-mapcar 'list c0 c2) > > #+END_SRC > > Thanks but I obtain > > #+RESULTS: > | 110 | 110 | > | 105 | 105 | > | 108 | 108 | > > Which is wrong. Incidentally, (mapcar 'string-to-char '("n" "i" "l")) => (110 105 108) Probably your references are not right. E.g. in Org-8.2 this file would produce your observed result. #+tblname: tab2 | 1 | a | 3 | | 2 | b | 4 | | 3 | c | 6 | | 4 | d | 7 | #+BEGIN_SRC emacs-lisp :var c0=tab2[,0] :var c2=tab2[,2] (cl-mapcar 'list c0 c2) #+END_SRC -- A clever person solves a problem. A wise person avoids it