emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: babel properties and inheritance
Date: Thu, 12 Jul 2018 07:13:40 -0400	[thread overview]
Message-ID: <m2tvp4lna3.fsf@gmail.com> (raw)

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

             reply	other threads:[~2018-07-12 11:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-12 11:13 Ken Mankoff [this message]
2018-07-12 16:19 ` babel properties and inheritance Berry, Charles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tvp4lna3.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).