From mboxrd@z Thu Jan 1 00:00:00 1970 From: emsenn Subject: Setupfile doesn't seem to pass pre-defined macros Date: Sat, 27 Apr 2019 22:25:31 -0400 Message-ID: <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]:52125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKZVa-00076P-Hv for emacs-orgmode@gnu.org; Sat, 27 Apr 2019 22:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKZVZ-0001fX-58 for emacs-orgmode@gnu.org; Sat, 27 Apr 2019 22:25:38 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:50157) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKZVY-0001eP-OU for emacs-orgmode@gnu.org; Sat, 27 Apr 2019 22:25:37 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 68C37202F2 for ; Sat, 27 Apr 2019 22:25:34 -0400 (EDT) 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 Hey y'all, 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. Thanks for your time, emsenn