From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: table as argument to code block : type of the elements Date: Fri, 13 Sep 2013 00:05:33 -0400 Message-ID: <87fvt9jrhu.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKKdm-0007SU-11 for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 00:06:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKKdg-00074V-1J for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 00:05:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:38738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKKdf-00073V-Qr for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 00:05:47 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VKKdd-00061h-Sr for emacs-orgmode@gnu.org; Fri, 13 Sep 2013 06:05:45 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Sep 2013 06:05:45 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Sep 2013 06:05:45 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org francois@avalenn.eu writes: > This code does not work because of automatic conversion from string to > number in org-babel-read-table. > > #+TBLNAME: table_test > | name | id | > |-------+-----| > | name1 | 034 | > | name2 | 135 | > | name3 | 1B5 | > > #+NAME: code_test > #+BEGIN_SRC emacs-lisp :var table=table_test > (setq myv "") > (dolist (line table myv) > (unless (eq line 'hline) > (setq myv (concat myv ";" (mapconcat 'identity line ","))))) > myv > > #+END_SRC > > I would like to have this result : > > #+RESULTS: code_test > : ;name,id;name1,034;name2,135;name3,1B5 > > Is there any possibility to deactivate this conversion as with > inhibit-lisp-eval for lisp forms ? Or better is there any way to chose > conversion parameters on a column to column basis ? > -- Nick