From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: org-use-property-inheritance not working? Date: Fri, 29 May 2015 13:57:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyIvR-0005nt-Px for emacs-orgmode@gnu.org; Fri, 29 May 2015 07:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyIvM-0004WF-79 for emacs-orgmode@gnu.org; Fri, 29 May 2015 07:58:09 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:36819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyIvM-0004W7-1z for emacs-orgmode@gnu.org; Fri, 29 May 2015 07:58:04 -0400 Received: by wivl4 with SMTP id l4so14977346wiv.1 for ; Fri, 29 May 2015 04:58:02 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id yz3sm8017131wjc.19.2015.05.29.04.58.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 04:58:01 -0700 (PDT) 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Consider this example: I enable property inheritance with (setq org-use-property-inheritance t) =2D-8<---------------cut here---------------start------------->8--- #+PROPERTY: header-args :tangle-mode (identity #o444) #+PROPERTY: header-args+ :eval no-export #+PROPERTY: header-args:R :session *R.EnergyBalance* * Without properties #+begin_src=20 13 #+end_src Result from (org-babel-view-src-block-info): ,---- | Properties: | :header-args :tangle-mode (identity #o444) :eval no-export | :header-args:nil nil | Switches:=20=20 | Header Arguments: | :cache no | :eval no-export | :exports code | :hlines no | :noweb no | :results replace | :session none | :tangle no | :tangle-mode 292 `---- This is as expected. * First Level :PROPERTIES: :header-args+: :tangle ./output/scripts/analysisCode.do.not.source.R :header-args+: :output-dir ./output :END: #+begin_src R=20 13 #+end_src Result from (org-babel-view-src-block-info): ,---- | Lang: R | Properties: | :header-args :tangle-mode (identity #o444) :eval no-export :tangle ./ou= tput/scripts/analysisCode.do.not.source.R :output-dir ./output | :header-args:R :session *R.EnergyBalance* | Header Arguments: | :cache no | :eval no-export | :exports code | :hlines no | :noweb no | :output-dir ./output | :results replace | :session *R.EnergyBalance* | :tangle ./output/scripts/analysisCode.do.not.source.R | :tangle-mode 292 `---- Also as expected, the header arguments are appended ** Second level :PROPERTIES: :header-args:R: :session *R.Results.Simp* :header-args+: :tangle ./output/scripts/graphs.SimplificationOfWindProfileF= its.R :END: Now the problem comes: #+begin_src R=20 13 #+end_src Result from (org-babel-view-src-block-info): ,---- | Lang: R | Properties: | :header-args :tangle-mode (identity #o444) :eval no-export :tangle ./ou= tput/scripts/graphs.SimplificationOfWindProfileFits.R | :header-args:R :session *R.Results.Simp* | Header Arguments: | :cache no | :eval no-export | :exports code | :hlines no | :noweb no | :results replace | :session *R.Results.Simp* | :tangle ./output/scripts/graphs.SimplificationOfWindProfileFits.R | :tangle-mode 292 `---- The header arguments from Level One (:output-dir and :tangle) are not there anymore and only the ones from the Second Level are used. I would have expected the Level Two header arguments to be added to the ones from Level One and the File wide? =2D-8<---------------cut here---------------end--------------->8--- Is this to be expected? I always thought, that the properties are hierarchical, and that the ones from the lower levels / headers are used as well? Is this not the case, or id this a bug? With property inheritance I would have expected the inheritance, but it does not seem to make a difference? Thanks, Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVaFRHAAoJENvXNx4PUvmC1zwIAJ2bx5xztUrom+pZF1fUPCvT B3X1YizTSQ25+RC0yc561NRHprcREX36FAucSD2cZtNBkBPhhE1KRr3XZpFzR4UH 5QMu6knthor9hnoFey2Mc8myKHTlE/MNeVZChoP+SQqtrqKcahebrIHSpcxunR6r 7lQCX8zXbZDpXsGApSN7rrfbFHeIzMmWiEOtIF3jfiFG7BWWNGWi94RLgSEgLWrd Rc1vvdjhdjaFZLYpBM3pt5inaGA3XP9KBshQlBz5CkBEAw0QFEncOjjsg/oTvsf4 JtneGZiVYp0rYvngaoCGjkkJCyIvxrexsZMxmWfNBT0gc15n0htOFfaI5fs0g7k= =NojW -----END PGP SIGNATURE----- --=-=-=--