From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Included global properties not inherited: bug or feature? Date: Fri, 06 Dec 2019 12:55:00 +0200 Message-ID: <87h82dd8qj.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53606) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idGyg-00087P-Sk for emacs-orgmode@gnu.org; Fri, 06 Dec 2019 12:01:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idGyf-0004FY-Et for emacs-orgmode@gnu.org; Fri, 06 Dec 2019 12:01:14 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:40584 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idGyf-0004D8-2k for emacs-orgmode@gnu.org; Fri, 06 Dec 2019 12:01:13 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1idBGR-000oQB-7T for emacs-orgmode@gnu.org; Fri, 06 Dec 2019 11:55:11 +0100 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: emacs-orgmode@gnu.org 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