From: emsenn <emsenn@emsenn.net>
To: emacs-orgmode@gnu.org
Subject: Setupfile doesn't seem to pass pre-defined macros
Date: Sat, 27 Apr 2019 22:25:31 -0400 [thread overview]
Message-ID: <2b9d1b21-19ce-48eb-a07a-4a18d345a07d@www.fastmail.com> (raw)
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
next reply other threads:[~2019-04-28 2:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-28 2:25 emsenn [this message]
2019-04-29 18:49 ` Setupfile doesn't seem to pass pre-defined macros Nicolas Goaziou
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=2b9d1b21-19ce-48eb-a07a-4a18d345a07d@www.fastmail.com \
--to=emsenn@emsenn.net \
--cc=emacs-orgmode@gnu.org \
/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).