From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Include lines in setupfile are not evaluated: bug or feature? Date: Sun, 08 Dec 2019 08:49:21 +0200 Message-ID: <87a7831fda.fsf@iki.fi> References: <87fthwsh1d.fsf@iki.fi> <8736dwwfgg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37523) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idqNv-0004wc-TR for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 01:49:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idqNs-0006K1-RV for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 01:49:39 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:43746 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1idqNr-0006En-Tl for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 01:49:36 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1idqNl-000iIq-RL for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 07:49:29 +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 Hello Nicolas! Nicolas Goaziou writes: > SETUPFILE and INCLUDE are orthogonal. There is no point in mixing > them. Ok. As a programmer I was hoping to mix them, because it would be logical to have _one_ header file that defines all the common things for a set of related files. But perhaps I can get away with using SETUPFILEs only. I will see. > Jarmo Hurri writes: >> Documentation of #setupfile says that >> >> "Org parses the contents of this document as if it was included in the >> buffer." >> >> https://orgmode.org/manual/In_002dbuffer-settings.html >> >> But that does not seem to be the case. > > SETUPFILE keyword recursively loads configuration from other files, > without inserting anything. INCLUDE keyword recursively inserts > contents from other files in the current document, but there is no > guarantee that configuration from these files will be inherited. Do I understand correctly: the description in the documentation is not correct in the sense that not all contents from SETUPFILE is evaluated as if it were included in the buffer? I am just trying to think about how this limitation, if it exists, should be expressed in documentation. Shall I give it a try? Thanks for the clarifying response! Jarmo