From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <877dz2et7r.fsf@fastmail.fm> References: <87imiof8d3.fsf@fastmail.fm> <77D76CC7-D45E-40A4-9D67-97057256B1E5@ucsd.edu> <878sji2a2i.fsf@fastmail.fm> <63056638-1FBC-495A-BAD0-31ACC44EEFBC@health.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55621) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIg5E-0003PL-Iy for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 18:07:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIg5D-0006Cj-HC for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 18:07:08 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:43575) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIg5D-0006BP-4o for emacs-orgmode@gnu.org; Sun, 29 Mar 2020 18:07:07 -0400 In-reply-to: <63056638-1FBC-495A-BAD0-31ACC44EEFBC@health.ucsd.edu> 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: "Berry, Charles" Cc: emacs-orgmode@gnu.org 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