From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block Date: Sun, 29 Mar 2020 16:44:08 -0700 Message-ID: References: <87imiof8d3.fsf@fastmail.fm> <77D76CC7-D45E-40A4-9D67-97057256B1E5@ucsd.edu> <878sji2a2i.fsf@fastmail.fm> <63056638-1FBC-495A-BAD0-31ACC44EEFBC@health.ucsd.edu> <877dz2et7r.fsf@fastmail.fm> <87lfnizsus.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d70b1205a206e955" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37191) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIhbM-00026z-GI for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 19:44:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIhbK-0007UA-Ba for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 19:44:24 -0400 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]:37705) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIhbK-0007Ti-7i for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 19:44:22 -0400 Received: by mail-yb1-xb2a.google.com with SMTP id n2so6716313ybg.4 for ; Sun, 29 Mar 2020 16:44:21 -0700 (PDT) In-Reply-To: <87lfnizsus.fsf@fastmail.fm> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Joost Kremers Cc: "Berry, Charles" , emacs-orgmode@gnu.org --000000000000d70b1205a206e955 Content-Type: text/plain; charset="UTF-8" Header args overwrite. Change python to python+ to append header args. Please excuse brevity. Sent from tiny pocket computer with non-haptic feedback keyboard. On Sun, Mar 29, 2020, 15:42 Joost Kremers wrote: > > On Mon, Mar 30 2020, Joost Kremers wrote: > > Looks like a bug, right? > > And while I'm at it, this doesn't work as expected either: > > ``` > #+PROPERTY: header-args :dir /home/joost/tmp/dlpy/ > > * 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 > ``` > > I would expect that the file `out1.py` is created in the directory > `/home/joost/tmp/dlpy`, but it's created in the same directory as > the Org file. > > Are my expectations wrong or is this really a bug? > > > -- > Joost Kremers > Life has its moments > > --000000000000d70b1205a206e955 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Header args overwrite. Change python to python+ to append= header args.=C2=A0=C2=A0

Pl= ease excuse brevity. Sent from tiny pocket computer with non-haptic feedbac= k keyboard.

On Sun, Mar 29, 2020, 15:42 Joost Kremers <joostkremers@fastmail.fm> wrote:

On Mon, Mar 30 2020, Joost Kremers wrote:
> Looks like a bug, right?

And while I'm at it, this doesn't work as expected either:

```
#+PROPERTY: header-args :dir /home/joost/tmp/dlpy/

* Header 1
:PROPERTIES:
:header-args:python: :tangle out1.py
:header-args:python: :session py1 :results function
:END:

#+begin_src python
a=3D1
b=3D2
c=3Da+b
return c
#+end_src
```

I would expect that the file `out1.py` is created in the directory
`/home/joost/tmp/dlpy`, but it's created in the same directory as
the Org file.

Are my expectations wrong or is this really a bug?


--
Joost Kremers
Life has its moments

--000000000000d70b1205a206e955--