From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Help with tangling a table into a source-code representation of the data contained within Date: Mon, 24 Feb 2014 18:49:20 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WI9xY-0007f2-Js for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 23:49:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WI9xS-0001XI-D4 for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 23:49:36 -0500 Received: from oproxy19-pub.mail.unifiedlayer.com ([70.40.200.33]:33804) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WI9xS-0001Wy-4Z for emacs-orgmode@gnu.org; Mon, 24 Feb 2014 23:49:30 -0500 In-Reply-To: (Grant Rettke's message of "Mon, 24 Feb 2014 22:37:58 -0600") 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: Grant Rettke Cc: "emacs-orgmode@gnu.org" 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=modes-data or something similar. hth, Tom -- Thomas S. Dye http://www.tsdye.com