From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] "tangle" results of source blocks? Date: Mon, 08 Nov 2010 13:40:21 -0700 Message-ID: <87lj53o8ga.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=43070 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFZRp-00023u-PK for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:40:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFYVv-0001GF-Jl for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 15:40:28 -0500 Received: from mail-gw0-f52.google.com ([74.125.83.52]:64680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFYVv-0001GB-F0 for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 15:40:27 -0500 Received: by gwj22 with SMTP id 22so3682362gwj.39 for ; Mon, 08 Nov 2010 12:40:26 -0800 (PST) In-Reply-To: (Maurizio Vitale's message of "Sun, 07 Nov 2010 09:58:48 -0500") 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 Hi Maurizio, You could try something like the following using the noweb expansion to run the code block and tangle its results. #+begin_src procmail :tangle yes :noweb yes <> #+end_src Best -- Eric Maurizio Vitale writes: > 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? > > Thanks, > > Maurizio > > > _______________________________________________ > 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