From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Help with tangling a table into a source-code representation of the data contained within Date: Tue, 25 Feb 2014 10:00:58 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIDt2-0003tU-Rx for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:01:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIDsx-00085z-IB for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:01:12 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:40488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIDsx-00085R-CF for emacs-orgmode@gnu.org; Tue, 25 Feb 2014 04:01:07 -0500 Received: by mail-wg0-f50.google.com with SMTP id l18so77538wgh.33 for ; Tue, 25 Feb 2014 01:01:06 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Mon, 24 Feb 2014 18:49:20 -1000") 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: "Thomas S. Dye" Cc: "emacs-orgmode@gnu.org" , Grant Rettke --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable tsd@tsdye.com (Thomas S. Dye) writes: > Aloha Grant, > > Grant Rettke writes: > >> Hi, >> >> My goal is to define a table in org-mode, display it nicely to humans >> using export, and tangle that same data table into >> an elisp data structure for use elsewhere within the program. It might >> look something like this: >> >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> * Modes >> >> This is a place for humans to keep track both of what >> modes activated for what file types; and also what utilies are used >> with those modes when they are activated. >> >> #+tblname: modes_data >> | mode name | file_type | paredit | auto-save | >> |-----------+-----------+---------+-----------| >> | scheme | .scm | yes | yes | >> | elisp | .el | yes | yes | >> | ielm | nil | yes | no | >> >> * Test >> >> #+begin_src emacs-lisp :noweb tangle :tangle test.el >> (mapcar (lambda (row) (message (car row))) modes_data) >> #+end_src > > I think you want: > #+header: :var modes-data=3Dmodes-data I don't know about the #+header, but the following works for me perfectly:' * Columns to evaluate #+NAME: COLS_TO_EVAL | | name | usable | |---+---------------+--------| | 1 | NPPyC | FALSE | | 2 | DBBVy | TRUE | | 3 | DBRFy | FALSE | | 4 | DBSSy | FALSE | | 5 | levelstress_2 | TRUE | #+PROPERTY: var+ COLS_TO_EVAL=3DCOLS_TO_EVAL Cheers, Rainer > > or something similar. > > hth, > Tom =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTDFvOAAoJENvXNx4PUvmCHD4H/3iMidiuBgOhs2mD3R79eyxB goPM+M9AV7mSzQ1y7jsdu9N9brQMabjlHTeQBC19MwytokZ3uikBFgJQ9nwmTO5H 98X9iIKviEFlvNcoQkSnLpHo9a7dGCj1maVp9NQwwsm8COIwFaALAc42omcl2LnL TIopJ3R4KECFZN/xeWyNdWH+PC5KTVluZjeB3WyoUW4kUkUiuK9CuO7aY8HtZe5n S/NDv1jr411vZTX6mKAd1V7HAn9PTb1kSD1pyzzVbkL+X3aydsUJ/xi9LNk6hHpj SdoL8RWeC/QCr/mmuKZ9DFCDTPC6MhSwz51dhKZkIYiyi0JiWjyCsnXXBdbzCeE= =n0KL -----END PGP SIGNATURE----- --=-=-=--