emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] table as argument to code block : type of the elements


From: francois
Subject: [O] table as argument to code block : type of the elements
Date: Thu, 12 Sep 2013 09:43:43 +0200
User-agent: Roundcube Webmail/0.7.2

Hello list,

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 ?


Fran├žois.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]