From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Include lines in setupfile are not evaluated: bug or feature? Date: Sun, 08 Dec 2019 09:38:14 +0100 Message-ID: <87y2vntdop.fsf@nicolasgoaziou.fr> References: <87fthwsh1d.fsf@iki.fi> <8736dwwfgg.fsf@nicolasgoaziou.fr> <87a7831fda.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53685) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ids5D-0008NJ-HA for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 03:38:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ids5B-0003w8-Bj for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 03:38:26 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:33369) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ids5A-0003nB-7V for emacs-orgmode@gnu.org; Sun, 08 Dec 2019 03:38:25 -0500 In-Reply-To: <87a7831fda.fsf@iki.fi> (Jarmo Hurri's message of "Sun, 08 Dec 2019 08:49:21 +0200") 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: Jarmo Hurri Cc: emacs-orgmode@gnu.org Hello, Jarmo Hurri writes: > 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. Again, there is no overlap between the two keywords. SETUPFILE is what you want. INCLUDE is only meaningful during export (and is only documented there). I cannot think of a real situation where you would need both for the same file. > 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 think the document is correct, although I understand it can be misleading: it uses the verb "to include", but with a different meaning than INCLUDE keyword. It includes in-buffer settings, not full contents. > I am just trying to think about how this limitation, if it exists, > should be expressed in documentation. Shall I give it a try? Sure, but please do not mix SETUPFILE and INCLUDE, which are unrelated. Regards, -- Nicolas Goaziou