* babel properties and inheritance
@ 2018-07-12 11:13 Ken Mankoff
2018-07-12 16:19 ` Berry, Charles
0 siblings, 1 reply; 2+ messages in thread
From: Ken Mankoff @ 2018-07-12 11:13 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: babel properties and inheritance
2018-07-12 11:13 babel properties and inheritance Ken Mankoff
@ 2018-07-12 16:19 ` Berry, Charles
0 siblings, 0 replies; 2+ messages in thread
From: Berry, Charles @ 2018-07-12 16:19 UTC (permalink / raw)
To: Ken Mankoff; +Cc: Org-mode
> On Jul 12, 2018, at 4:13 AM, Ken Mankoff <mankoff@gmail.com> wrote:
>
> 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
........................^...
Delete the colon. Then C-c C-c (which I often forget!)
then use `:header-args+:' for any heading to avoid clobbering the args you do not wish to change.
Chuck
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-12 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 11:13 babel properties and inheritance Ken Mankoff
2018-07-12 16:19 ` Berry, Charles
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).