From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Hilboll Subject: Re: Help tangling Date: Wed, 02 Apr 2014 23:10:12 +0200 Message-ID: <533C7CB4.3010803@hilboll.de> References: <533C69D3.3010906@hilboll.de> <87bnwjqw7e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVSQT-0003jO-3Y for emacs-orgmode@gnu.org; Wed, 02 Apr 2014 17:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVSQM-0003YB-4P for emacs-orgmode@gnu.org; Wed, 02 Apr 2014 17:10:24 -0400 Received: from srv2.andreas-h.info ([130.185.108.51]:57609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVSQL-0003XX-VP for emacs-orgmode@gnu.org; Wed, 02 Apr 2014 17:10:18 -0400 In-Reply-To: <87bnwjqw7e.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org On 02.04.2014 23:04, Eric Schulte wrote: > Andreas Hilboll writes: > >> Hi, >> >> I want to write a "SConstruct" file (for SCons, a Python make >> alternative) in orgmode, using literate programming. So I have a file >> "SConstruct.org", where I include the code blocks with "#+begin_src ... >> #+end_src". My question: >> >> How can I specify that *all* code blocks shall be tangled into one >> single file called "SConstruct"? >> >> I know I could do this by writing >> >> #+begin_src python :tangle SConstruct >> [...] >> #+end_src >> >> instead of >> >> #+begin_src >> [...] >> #+end_src >> >> but is there some way to define the "python" > > no > >> and the ":tangle SConstruct" > > yes > > #+Property: tangle SConstruct > Thanks for your feedback, Eric! However, it doesn't seem to work properly. The first two lines of my file read #+OPTIONS: toc:4 h:4 #+PROPERTY: tangle SConstruct and I have several code blocks like #+begin_src python [...] #+end_src However, when I invoke org-babel-tangle, I get the message "Tangled 0 code blocks from SConstruct.org", and no output file is created. Have I misunderstood you? What am I doing wrong? Cheers, Andreas. >> 'globally' for the whole file? >> >> Thanks for helping me orgmode-newbie! >> > > Best, > >> >> -- Andreas. >> > -- -- Andreas.