From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Brunner Subject: Re: [org-babel] How to tangle "org-mode" files? Date: Fri, 16 Apr 2010 09:12:27 +0200 Message-ID: <87y6gnzx9g.fsf@systemhaus-brunner.de> References: <87wrw92jz0.fsf@systemhaus-brunner.de> <87ochkej51.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2qpt-0000n2-R4 for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 15:04:17 -0400 Received: from [140.186.70.92] (port=58313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2qps-0000jT-3f for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 15:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2fj5-0004pL-M4 for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 03:17:21 -0400 Received: from mail.systemhaus-brunner.de ([80.153.188.67]:26800 helo=systemhaus-brunner.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2fj4-0004oK-Hv for emacs-orgmode@gnu.org; Fri, 16 Apr 2010 03:12:31 -0400 In-Reply-To: <87ochkej51.fsf@stats.ox.ac.uk> (Dan Davison's message of "Thu, 15 Apr 2010 13:10:50 -0400") 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: emacs-orgmode@gnu.org Hi Dan, thanks for the advice. After the org-babel-add-interpreter I got another error message that org-babel-execute:org is not defined. I then added (I took the code from org-babel-css.el) a (defun org-babel-execute:org (body params) "Execute a block of org code with org-babel. This function is calles by `org-babel-execute-src-block'." (message "executing ORG source code block") body) and after that the tangle worked. But you're right: The remaining commas are not that helpful and my opinion would be too to strip them out. If I could help please let me know. Best wishes, Daniel Dan Davison writes: > Daniel Brunner 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 > > > _______________________________________________ > 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 >