[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERT
From: |
Joost Kremers |
Subject: |
Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block |
Date: |
Mon, 30 Mar 2020 00:07:01 +0200 |
User-agent: |
mu4e 1.3.10; emacs 26.3 |
On Sun, Mar 29 2020, Berry, Charles via General discussions about
Org-mode. wrote:
What we really need is an ECM rather than snippets of code.
Yes, my apologies. It seems that having more than one `header-arg`
line doesn't work properly. The following works:
```
* Header 1
:PROPERTIES:
:header-args:python: :tangle out1.py
:header-args:python: :session py1 :results function
:END:
#+begin_src python
a=1
b=2
c=a+b
return c
#+end_src
#+RESULTS:
: 3
```
But if I swap the two `header-args` lines, tangling stops working
and at the same time evaluating the code block doesn't give any
output at all:
```
* Header 1
:PROPERTIES:
:header-args:python: :session py1 :results function
:header-args:python: :tangle out1.py
:END:
#+begin_src python
a=1
b=2
c=a+b
return c
#+end_src
#+RESULTS:
```
With a `#+PROPERTY` line, I can't make it work at all:
```
#+PROPERTY: header-args:python :tangle out.py
#+PROPERTY: header-args:python :results function
* Header 1
#+begin_src python
a=1
b=2
c=a+b
return c
#+end_src
#+RESULTS:
: 3
```
Evaluating the code block works, but tangling doesn't. Reversing
the order of the `#+PROPERTY` lines has no effect in this case.
Looks like a bug, right?
--
Joost Kremers
Life has its moments
- :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/28
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Berry, Charles, 2020/03/29
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/29
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Berry, Charles, 2020/03/29
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block,
Joost Kremers <=
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/29
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Ken Mankoff, 2020/03/29
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/30
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Berry, Charles, 2020/03/30
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/31
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Ken Mankoff, 2020/03/31
- Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block, Joost Kremers, 2020/03/31