emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Hilboll <lists@hilboll.de>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Help tangling
Date: Wed, 02 Apr 2014 23:10:12 +0200	[thread overview]
Message-ID: <533C7CB4.3010803@hilboll.de> (raw)
In-Reply-To: <87bnwjqw7e.fsf@gmail.com>

On 02.04.2014 23:04, Eric Schulte wrote:
> Andreas Hilboll <lists@hilboll.de> 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.

  reply	other threads:[~2014-04-02 21:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 19:49 Help tangling Andreas Hilboll
2014-04-02 21:04 ` Eric Schulte
2014-04-02 21:10   ` Andreas Hilboll [this message]
2014-04-02 23:05     ` Eric Schulte
2014-04-03 14:19       ` Andreas Hilboll

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=533C7CB4.3010803@hilboll.de \
    --to=lists@hilboll.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).