From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Setupfile doesn't seem to pass pre-defined macros Date: Mon, 29 Apr 2019 20:49:40 +0200 Message-ID: <87ef5kmyt7.fsf@nicolasgoaziou.fr> References: <2b9d1b21-19ce-48eb-a07a-4a18d345a07d@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLBLY-0000AN-Vg for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 14:49:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLBLX-0006X0-3Y for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 14:49:48 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49725) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLBLV-0006WZ-OG for emacs-orgmode@gnu.org; Mon, 29 Apr 2019 14:49:47 -0400 In-Reply-To: <2b9d1b21-19ce-48eb-a07a-4a18d345a07d@www.fastmail.com> (emsenn@emsenn.net's message of "Sat, 27 Apr 2019 22:25:31 -0400") 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: emsenn Cc: emacs-orgmode@gnu.org Hello, emsenn writes: > I've recently been playing more with Org-mode's INCLUDE and SETUPFILE features, and think I might have found a bug. > > File alpha.org contains > > #+MACRO: womble fribble > #+AUTHOR: muffet > > > File beta.org contains > > #+SETUPFILE: ./alpha.org > The womble macro is {{{womble}}} > > > File gamma.org contains > > #+SETUPFILE: ./alpha.org > The author is {{{author}}} > > --- > > Beta exports fine, but Gamma fails, saying: Undefined org macro: author; aborting > > That seems like a bug to me, but am I misusing it? The manual's > section on macro replacement says that author is among a few > "pre-defined" macros: > https://orgmode.org/manual/Macro-replacement.html > > If I define author in a file, the macro work. If I INCLUDE Alpha it > works too. But not if I use SETUPFILE. Fixed. Thank you. Regards, -- Nicolas Goaziou