From: Dan Davison <davison@stats.ox.ac.uk>
To: Daniel Brunner <daniel@dbrunner.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [org-babel] How to tangle "org-mode" files?
Date: Thu, 15 Apr 2010 13:10:50 -0400 [thread overview]
Message-ID: <87ochkej51.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <87wrw92jz0.fsf@systemhaus-brunner.de> (Daniel Brunner's message of "Thu, 15 Apr 2010 10:33:39 +0200")
Daniel Brunner <daniel@dbrunner.de> writes:
> Hi,
>
> I am testing some ideas with org-babel (which is really great work) and
> got the following problem: I want to put several org-mode source blocks
> in one org-mode file and tangle them afterwards. Therefore I produced
> the following a.org:
>
> -->8--
> #+begin_src org :tangle in-a.org
> ,* Foo
> ,** Bar
> #+end_src
> -->8--
>
> Then I thought I have to add "org" to the list of known tangle
> languages:
>
>> (add-to-list 'org-babel-tangle-langs '("org" "org"))
>
> And when I know try a org-babel-tangle for example with
>
>> (org-babel-tangle-file "a.org")
>
> Nothing happens.
>
> Can anybody help with what I am doing wrong?
Hi Daniel,
Short answer: please add
(org-babel-add-interpreter "org")
Long answer: I think there is room for improvement in org-babel
here. For example, the protective commas are not stripped out on
tangling, but I feel that they should be. And we need to clarify in the
documentation when org-babel-add-interpreter is needed and when adding
to org-babel-tangle-langs is required. I'm adding this to our todo list.
Best wishes,
Dan
>
>
> Kind regards, Daniel
>
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2010-04-15 17:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 8:33 [org-babel] How to tangle "org-mode" files? Daniel Brunner
2010-04-15 17:10 ` Dan Davison [this message]
2010-04-16 7:12 ` Daniel Brunner
2010-04-26 14:52 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ochkej51.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=daniel@dbrunner.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).