[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: [babel] "tangle" results of source blocks?

From: Erik Iverson
Subject: Re: [Orgmode] Re: [babel] "tangle" results of source blocks?
Date: Mon, 08 Nov 2010 15:36:15 -0600
User-agent: Thunderbird (X11/20090812)

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ébastien" == Sébastien Vauban <address@hidden> 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: *
    >> address@hidden
    >> $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|

#+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.



Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]