From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: Re: [babel] "tangle" results of source blocks? Date: Mon, 8 Nov 2010 16:27:41 -0500 Message-ID: References: <87lj53o8ga.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1892392713==" Return-path: Received: from [140.186.70.92] (port=42733 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFZLL-0001uS-Dr for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:33:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFZFl-0005vO-IS for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:27:50 -0500 Received: from smtp-out.google.com ([74.125.121.35]:39805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFZFl-0005uw-AI for emacs-orgmode@gnu.org; Mon, 08 Nov 2010 16:27:49 -0500 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id oA8LRkLl029193 for ; Mon, 8 Nov 2010 13:27:46 -0800 Received: from ewy3 (ewy3.prod.google.com [10.241.103.3]) by hpaq12.eem.corp.google.com with ESMTP id oA8LRjCW009516 for ; Mon, 8 Nov 2010 13:27:45 -0800 Received: by ewy3 with SMTP id 3so2989936ewy.21 for ; Mon, 08 Nov 2010 13:27:45 -0800 (PST) In-Reply-To: <87lj53o8ga.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1892392713== Content-Type: multipart/alternative; boundary=0015175931a255a9ff0494914b3b --0015175931a255a9ff0494914b3b Content-Type: text/plain; charset=ISO-8859-1 Sweet! Thanks On Mon, Nov 8, 2010 at 3:40 PM, Eric Schulte wrote: > 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 > --0015175931a255a9ff0494914b3b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sweet!
Thanks

On Mon, Nov 8, 2010 at = 3:40 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
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
=A0<<procmail-rules(mailing-lists=3Dmailing-lists)>>
#+end_src

Best -- Eric

Maurizio Vitale <mav@google.com>= ; writes:

> Hi,
> =A0 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 =A0 =A0 =A0| emacs-users | emacs-users |
> #+TBLFM:
>
>
> #+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
>
> #+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,
>
> =A0 =A0 =A0 =A0 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

--0015175931a255a9ff0494914b3b-- --===============1892392713== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1892392713==--