From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?S=C3=A9bastien_Brisard?= Subject: How to pass table to SRC block as strings only? Date: Thu, 19 Jan 2017 07:55:21 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cU6d4-0005FA-Pd for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 01:55:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cU6d1-0006qX-Nt for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 01:55:26 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:48887) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cU6d1-0006q9-HG for emacs-orgmode@gnu.org; Thu, 19 Jan 2017 01:55:23 -0500 Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id AF3D3564938 for ; Thu, 19 Jan 2017 07:55:21 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id c85so275857811wmi.1 for ; Wed, 18 Jan 2017 22:55:21 -0800 (PST) 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 Hello all, here is a MWE =3D=3D=3D=3D=3DBEGIN MWE=3D=3D=3D=3D=3D #+NAME: table20170119 | col1 | col2 | |------+------------| | row1 | 1234567890 | | row2 | a | | row3 | b | | row4 | c | #+BEGIN_SRC emacs-lisp :var table=3Dtable20170119 :colnames yes :results ou= tput (print (map 'list (lambda (row) (nth 1 row)) table)) #+END_SRC #+RESULTS: : : (1234567890.0 "a" "b" "c") =3D=3D=3D=3D=3DEND MWE=3D=3D=3D=3D=3D As you can see, col #1, row #1 is parsed as a float. I would like it to be parsed as a string. In other words, the expected RESULTS are =3D=3D=3D=3D=3DBEGIN EXPECTED RESULT=3D=3D=3D=3D=3D #+RESULTS: : : ("1234567890" "a" "b" "c") =3D=3D=3D=3D=3DEND EXPECTED RESULT=3D=3D=3D=3D=3D Is there an option to prevent org from interpreting the cell values? I noticed that org-table-to-lisp returns all cells as strings. That's the functionality I am looking for, in header arguments. Thanks for your help, S=C3=A9bastien