From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emsenn <emsenn@emsenn.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Setupfile doesn't seem to pass pre-defined macros
Date: Mon, 29 Apr 2019 20:49:40 +0200 [thread overview]
Message-ID: <87ef5kmyt7.fsf@nicolasgoaziou.fr> (raw)
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")
Hello,
emsenn <emsenn@emsenn.net> 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
prev parent reply other threads:[~2019-04-29 18:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 2:25 Setupfile doesn't seem to pass pre-defined macros emsenn
2019-04-29 18:49 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ef5kmyt7.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=emsenn@emsenn.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).