[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Setupfile doesn't seem to pass pre-defined macros
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Setupfile doesn't seem to pass pre-defined macros |
Date: |
Mon, 29 Apr 2019 20:49:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello,
emsenn <address@hidden> 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