From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Re: [babel] "tangle" results of source blocks? Date: Mon, 08 Nov 2010 15:36:15 -0600 Message-ID: <4CD86D4F.2090402@ccbr.umn.edu> References: <80mxpjwp09.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39699 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFZO5-0000T0-Ie for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:36:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFZO0-0000WY-1O for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:36:24 -0500 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFZNz-0000Vh-Qx for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:36:19 -0500 In-Reply-To: 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: Maurizio Vitale Cc: emacs-orgmode@gnu.org Unfortunately I can't look this up at the moment, but my guess is that the :results code option might help with what you want? Maurizio Vitale wrote: >>>>>> "S=C3=A9bastien" =3D=3D S=C3=A9bastien Vauban writes: >=20 > S=C3=A9bastien> Hello Maurizio, > S=C3=A9bastien> 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. > >>=20 > >> Something like: > >>=20 > >> #+tblname: mailing-lists | to | emacs-users | emacs-users | > >> #+TBLFM: > >>=20 > >> #+srcname: procmail-rules(mailing-lists=3Dmailing-lists) > >> #+begin_src emacs-lisp :exports results :results output :tangle > >> no ... elisp code that evaluates to procmail rules #+end_src > >>=20 > >> #+results: procmail-rules :tangle /tmp/YYY :0: * > >> ^TO_emacs-users@XXX.com > >> $MAILDIR/emacs-users/ > >>=20 > >> I'd like to tangle the result section, not the code block. Is > >> that possible? >=20 > S=C3=A9bastien> See the "exports" header argument. >=20 > S=C3=A9bastien> http://orgmode.org/manual/exports.html#exports >=20 > 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: >=20 > * Introduction > This is a file that does blah > * Configuration > #+tblname: config > |a | nice table| >=20 > *Details > #+srcname: procmail-rules(config=3Dconfig) > #+begin_src emacs-lisp :exports results :results output :tangle ~/.proc= mailrc > ... elisp code that evaluates to procmail rules =20 > #+end_src >=20 > Of this entire file, noting should end up in ~/.procmailrc except for t= he > result of the evaluation of procmail-rules, which is what I hoped to > achieve with ':tangle ~/.procmailrc' and ':exports results' combined. >=20 > Thanks, >=20 > Maurizio >=20 >=20 >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode