From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" via "General discussions about Org-mode." Subject: Re: :tangle header argument not picked up in #+PROPERTY line or :PROPERTIES: block Date: Tue, 31 Mar 2020 01:08:38 +0000 Message-ID: <3174B607-443C-4920-AC76-597183D019C9@health.ucsd.edu> 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> <874ku57aol.fsf@fastmail.fm> Reply-To: "Berry, Charles" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43749) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJ5Oc-0002pi-7t for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 21:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJ5Oa-0000db-V4 for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 21:08:49 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:4212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJ5Oa-0000bb-BN for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 21:08:48 -0400 In-Reply-To: <874ku57aol.fsf@fastmail.fm> Content-Language: en-US Content-ID: 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: "emacs-orgmode@gnu.org" , Ken Mankoff > On Mar 30, 2020, at 3:23 PM, Joost Kremers wro= te: >=20 [stuff deleted] >=20 > If I reverse the order and add a `+` sign, like so: >=20 > ``` > :PROPERTIES: > :header-args:python+: :session py1 :results function > :header-args:python+: :tangle out1.py > :END: > ``` >=20 > the code does indeed get tangled, but the `:results` header arg isn't pic= ked up, because the code block doesn't produce any output. Not so. `org-babel-view-src-block-info' (C-c C-v C-i with point in the src block be= low) reports ,---- | Lang: python | Properties: | :header-args nil | :header-args:python :session py1 :results function :tangle out1.py | Header Arguments: | :cache no | :exports code | :hlines no | :noweb no | :results function replace | :session py1 | :tangle out1.py `---- >=20 > For reference, this is my test file: >=20 > ``` > * Header 1 > :PROPERTIES: > :header-args:python+: :session py1 :results function > :header-args:python+: :tangle out1.py > :END: >=20 > #+begin_src python > a=3D1 > b=3D2 > c=3Da+b > return c > #+end_src >=20 > #+RESULTS: > ```