From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: Re: [babel] "tangle" results of source blocks? Date: Mon, 08 Nov 2010 16:15:37 -0500 Message-ID: References: <80mxpjwp09.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=43106 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFZ9i-00027N-Nb for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:21:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFZ4D-0003JX-LP for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:15:54 -0500 Received: from lo.gmane.org ([80.91.229.12]:56964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFZ4D-0003JP-7m for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:15:53 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PFZ4A-0002vh-Rp for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 22:15:50 +0100 Received: from static-96-235-41-115.pitbpa.fios.verizon.net ([96.235.41.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2010 22:15:50 +0100 Received: from mav by static-96-235-41-115.pitbpa.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Nov 2010 22:15:50 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org >>>>> "Sébastien" == Sébastien Vauban writes: Sébastien> Hello Maurizio, Sébastien> Maurizio Vitale wrote: >> Hi, I have procmail rules defined in a org table which is then >> used as an argument for an elisp block which produces procmailrc >> results. >> >> Something like: >> >> #+tblname: mailing-lists | to | emacs-users | emacs-users | >> #+TBLFM: >> >> #+srcname: procmail-rules(mailing-lists=mailing-lists) >> #+begin_src emacs-lisp :exports results :results output :tangle >> no ... elisp code that evaluates to procmail rules #+end_src >> >> #+results: procmail-rules :tangle /tmp/YYY :0: * >> ^TO_emacs-users@XXX.com >> $MAILDIR/emacs-users/ >> >> I'd like to tangle the result section, not the code block. Is >> that possible? Sébastien> See the "exports" header argument. Sébastien> http://orgmode.org/manual/exports.html#exports That option controls what is exported, but I really need to tangle: there're portions of the file, section headings and other documentation that don't belong into the output file. So for instance given: * Introduction This is a file that does blah * Configuration #+tblname: config |a | nice table| *Details #+srcname: procmail-rules(config=config) #+begin_src emacs-lisp :exports results :results output :tangle ~/.procmailrc ... elisp code that evaluates to procmail rules #+end_src Of this entire file, noting should end up in ~/.procmailrc except for the result of the evaluation of procmail-rules, which is what I hoped to achieve with ':tangle ~/.procmailrc' and ':exports results' combined. Thanks, Maurizio