From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Included global properties not inherited: bug or feature? Date: Sat, 07 Dec 2019 08:28:37 +0200 Message-ID: <877e387ip6.fsf@iki.fi> References: <87h82dd8qj.fsf@iki.fi> <87fthxw5k1.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49850) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idTaG-0006OH-LB for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 01:28:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idTaC-000888-Kw for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 01:28:52 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:36340 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idTaC-0007mO-7j for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 01:28:48 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1idTa8-0001W9-ES for emacs-orgmode@gnu.org; Sat, 07 Dec 2019 07:28:44 +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 --=-=-= Content-Type: text/plain Nicolas Goaziou writes: >> 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 happens if you use SETUPFILE instead? It works perfectly. Please find attached a patch that mentions this behaviour in the include-part of Org manual. Ok? Jarmo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-manual.org-Document-global-properties-not-being-.patch Content-Description: include doc patch >From 00701e1732fcf71180dc02f72117b44bccf5eb2d Mon Sep 17 00:00:00 2001 From: Jarmo Hurri Date: Sat, 7 Dec 2019 08:19:05 +0200 Subject: [PATCH] org-manual.org: Document global properties not being inherited when including files * doc/org-manual.org: Note that when an org-file is included, even with `:only-contents` set to `nil`, global properties set with lines beginning `#+PROPERTY:` will not be inherited in the file that includes. Point the user to use `#+SETUPFILE:` for this purpose. --- doc/org-manual.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index 35f6013ce..a0aedf825 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -11770,6 +11770,11 @@ with the custom ID =theory=, you can use : #+INCLUDE: "./paper.org::#theory" :only-contents t +Note that even when =:only-contents= has value ~nil~, properties set +in the included file by lines beginning with =#+PROPERTY:= will not be +inherited in the file that includes. To achieve such inheritance, use +=#+SETUPFILE:= instead (see [[Summary of In-Buffer Settings]]). + The following command allows navigating to the included document: - {{{kbd(C-c ')}}} (~org-edit~special~) :: -- 2.21.0 --=-=-=--