From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Help with tangling a table into a source-code representation of the data contained within Date: Tue, 25 Feb 2014 23:21:26 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136a0d45f138b04f348606a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIWvw-0002qI-Ri for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 00:21:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIWvv-0004sJ-K1 for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 00:21:28 -0500 Received: from mail-oa0-x232.google.com ([2607:f8b0:4003:c02::232]:48325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIWvv-0004sF-Ey for emacs-orgmode@gnu.org; Wed, 26 Feb 2014 00:21:27 -0500 Received: by mail-oa0-f50.google.com with SMTP id i11so333209oag.37 for ; Tue, 25 Feb 2014 21:21:27 -0800 (PST) In-Reply-To: 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: Rainer M Krug Cc: "emacs-orgmode@gnu.org" , "Thomas S. Dye" --001a1136a0d45f138b04f348606a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This seems like a fine option: #+name: mode_data | mode | paredit | auto-save | |------------+---------+-----------| | scheme | TRUE | TRUE | | emacs-lisp | TRUE | TRUE | | ielm | TRUE | FALSE | #+begin_src emacs-lisp :var data=3Dmode_data :exports results :file modes.j= son (require 'json) (json-encode data) #+end_src JSON because I will probably use it a few different ways, and most langs today handle JSON just fine. On Tue, Feb 25, 2014 at 10:41 PM, Grant Rettke wro= te: > Thanks everyone. > > My tentative plan is to run some elisp that will dump the table to an > intermediate file and then dependent files may load it themselves. > --=20 Grant Rettke | ACM, AMA, COG, IEEE gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson --001a1136a0d45f138b04f348606a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This seems like a fine option:

#+name: mode_da= ta
| mode =C2=A0 =C2=A0 =C2=A0 | paredit | auto-save |
= |------------+---------+-----------|
| scheme =C2=A0 =C2=A0 | TRU= E =C2=A0 =C2=A0| TRUE =C2=A0 =C2=A0 =C2=A0|
| emacs-lisp | TRUE =C2=A0 =C2=A0| TRUE =C2=A0 =C2=A0 =C2=A0|
| ielm =C2=A0 =C2=A0 =C2=A0 | TRUE =C2=A0 =C2=A0| FALSE =C2=A0 =C2=A0 |

#+begin_src emacs-lisp :var data=3Dmode_data :expor= ts results :file modes.json
=C2=A0 (require 'json)
=C2=A0 (json-encode data)
#+end_src

JSON because I will probably use it a few different ways, and most langs t= oday handle JSON just fine.


<= div class=3D"gmail_quote"> On Tue, Feb 25, 2014 at 10:41 PM, Grant Rettke <gcr@wisdomandwonder.= com> wrote:
Thanks everyone.

My tentative plan is to run some elisp that will dump the table to an
intermediate file and then dependent files may load it themselves.



--
Grant Rettke= | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
=E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
((=CE=BB (x) (x x)= ) (=CE=BB (x) (x x)))
=E2=80=9CLife has become immeasurably better since= I have been forced to stop taking it seriously.=E2=80=9D --Thompson --001a1136a0d45f138b04f348606a--