[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Included global properties not inherited: bug or feature?
From: |
Jarmo Hurri |
Subject: |
Included global properties not inherited: bug or feature? |
Date: |
Fri, 06 Dec 2019 12:55:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Greetings.
It seems that when a file with global properties is included, the global
properties are not inherited. Is this a bug or a feature?
Consider the two files inlined below:
# ---------------------------------- file 'included.org' -------------------
#+property: MY_INCLUDED_PROPERTY some included value
# --------------------------------------------------------------------------
# -------------- file which includes ---------------------------------------
#+include: included.org :only-contents nil
#+property: MY_INLINE_PROPERTY some inline value
src_elisp[:exports results :results raw]{(org-entry-get nil
"MY_INCLUDED_PROPERTY" t)} nil
src_elisp[:exports results :results raw]{(org-entry-get nil
"MY_INLINE_PROPERTY" t)} some inline value
# --------------------------------------------------------------------------
As you can see from the results of evaluation of elisp blocks, the
included global property is not available in the including file. Note
that the documentation for #include states that there is a special
property :only-contents for including only contents, not properties. To
play it safe, I have set this property to 'nil' above.
https://orgmode.org/manual/Include-files.html
Based on this documentation, I was expecting global properties to be
available by default in including files.
I find current behaviour inconvenient, because I want to set common
global properties for a large number of files, and I can not currently
do this via an included file.
What is the verdict?
I am running
Org mode version 9.3 (release_9.3-34-g2eee3c)
GNU Emacs 26.2
Jarmo
- Included global properties not inherited: bug or feature?,
Jarmo Hurri <=