[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [babel] "tangle" results of source blocks?
From: |
Maurizio Vitale |
Subject: |
[Orgmode] Re: [babel] "tangle" results of source blocks? |
Date: |
Mon, 08 Nov 2010 16:15:37 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>>>>> "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|
*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