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:09 +0200 Message-ID: <878ty49bke.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]:38279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDu2U-0003MT-OI for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDu2Q-0000KE-HQ for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:35230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDu2Q-0000K2-Aa for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 09:42:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bDu2O-00066I-D4 for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 15:42:20 +0200 Received: from 46.166.188.200 ([46.166.188.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2016 15:42:20 +0200 Received: from rasmus by 46.166.188.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2016 15:42:20 +0200 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