From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: babel properties and inheritance Date: Thu, 12 Jul 2018 07:13:40 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdZXe-0008Ar-Aq for emacs-orgmode@gnu.org; Thu, 12 Jul 2018 07:13:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdZXa-0008HL-L2 for emacs-orgmode@gnu.org; Thu, 12 Jul 2018 07:13:45 -0400 Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:44427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdZXa-0008G9-Dz for emacs-orgmode@gnu.org; Thu, 12 Jul 2018 07:13:42 -0400 Received: by mail-qk0-x232.google.com with SMTP id v17-v6so12730073qkb.11 for ; Thu, 12 Jul 2018 04:13:42 -0700 (PDT) Received: from GEUS2690macwsm.local (pool-68-129-142-51.nycmny.fios.verizon.net. [68.129.142.51]) by smtp.gmail.com with ESMTPSA id p14-v6sm7719167qtn.81.2018.07.12.04.13.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 04:13:41 -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" To: Org-mode Hi Org List, I'm confused about the inheritance behavior of babel properties. >From the MWE below, I'd expect :tangle to take effect at the heading level (it does), but :tangle-mode and :comments to apply to the whole file. They do not have any effect. It doesn't seem to matter if I turn on or off org-use-property-inheritance. In either case, :comments are not tangled, and the file mode is not 755. -k. MWE ====================================================== #+PROPERTY: header-args: :tangle debug.sh :tangle-mode (identity #o755) :comments org #+BEGIN_SRC emacs-lisp :tangle no ;; (setq org-use-property-inheritance t) ;; (setq org-use-property-inheritance nil) (org-version nil t) #+END_SRC #+RESULTS: : Org mode version 9.1.13 (9.1.13-elpa @ /Users/kdm/.emacs.d/elpa/org-20180709/) * Foo :PROPERTIES: :header-args: :tangle foo.sh :END: Foo text #+BEGIN_SRC sh echo "foo code" #+END_SRC ** Bar :PROPERTIES: :header-args: :tangle bar.sh :END: Bar text #+BEGIN_SRC sh echo "bar code" #+END_SRC