Re: [O] Help tangling

2014-04-03 Thread Eric Schulte
 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?


You may have to C-c C-c on the property line so that it is re-read by
Emacs (which normally only happens when opening the file).

Best,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] Help tangling

2014-04-03 Thread Andreas Hilboll
On 03.04.2014 01:05, Eric Schulte wrote:
 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?

 
 You may have to C-c C-c on the property line so that it is re-read by
 Emacs (which normally only happens when opening the file).

Cool -- thanks =)

-- Andreas.



[O] Help tangling

2014-04-02 Thread Andreas Hilboll
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 and the :tangle
SConstruct 'globally' for the whole file?

Thanks for helping me orgmode-newbie!

-- Andreas.



Re: [O] Help tangling

2014-04-02 Thread Eric Schulte
Andreas Hilboll li...@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

 'globally' for the whole file?

 Thanks for helping me orgmode-newbie!


Best,


 -- Andreas.


-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] Help tangling

2014-04-02 Thread Andreas Hilboll
On 02.04.2014 23:04, Eric Schulte wrote:
 Andreas Hilboll li...@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.