From: Eric S Fraga <esflists@gmail.com>
To: emacs-orgmode@gnu.org
Subject: cautionary tale: avoid creating/using a macro called "title"
Date: Wed, 14 Mar 2018 17:37:36 +0000 [thread overview]
Message-ID: <87y3iuh82n.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
Dear all,
I have, until now, used a macro
#+macro title The title of the document
to be subsequently used in the actual #+title line, as in
#+title: @@latex:...@@ {{{title}}} @@latex:...@@
(LaTeX details not important, I think.)
but this now leads to a recursive evaluation of the line when exporting,
causing an infinite loop.
Changing the name of the macro to something else avoids the issue. I'm
not entirely sure why a macro expansion of the #+title line would be
recursive but there you are!
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-303-g6cf5fc.dirty
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next reply other threads:[~2018-03-14 17:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 17:37 Eric S Fraga [this message]
2018-03-21 1:06 ` cautionary tale: avoid creating/using a macro called "title" Bastien
2018-03-21 11:01 ` Eric S Fraga
2018-03-22 8:34 ` Bastien
2018-03-22 8:55 ` Eric S Fraga
2018-03-22 9:22 ` Eric S Fraga
2018-03-22 9:43 ` Bastien
2018-03-22 12:12 ` Eric S Fraga
2018-03-22 12:23 ` Kaushal Modi
2018-03-22 15:34 ` Eric S Fraga
2018-03-22 13:28 ` Nicolas Goaziou
2018-03-22 16:39 ` Eric S Fraga
2018-03-23 22:42 ` Nicolas Goaziou
2018-03-24 17:54 ` Eric S Fraga
2018-04-26 23:34 ` Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y3iuh82n.fsf@gmail.com \
--to=esflists@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.