From: amscopub-mail@yahoo.com
To: emacs-orgmode@gnu.org
Subject: Weird bug when babel used in a macro
Date: Mon, 16 May 2011 13:36:49 -0700 (PDT) [thread overview]
Message-ID: <148857.21069.qm@web120703.mail.ne1.yahoo.com> (raw)
Sample ORG file:
#+MACRO: test src_emacs-lisp[:results raw]{(let (mRef) (progn (if (string= "$2" "1") (setq mRef "A") (if (string= "$2" "2") (setq mRef "B") (setq mRef "C"))) (concat "Test $1" mRef ": ")))}
* *Hello World*
{{{test(1,1)}}}
Desired HTML export:
Test 1.A
Actual HTML export:
The babel macro takes the 2nd argument and maps it to the following: 1 => A, 2 => B, Everything else => C. Yeah, it may be convoluted, but it gets the job done i.e., the actual HTML file is fine.
HOWEVER, I get this error during the export process:
"No match - create this as a new heading? (y or n)"
If you select "y", it adds an extra heading to the file. This heading is
* Hello World* (same heading minus the *)
If you un-bold the heading (change the heading to "* Hello World"), it exports fine. For some reason when the actual heading starts with a * character, it is throwing "something" off...
Using 7.4 (I'm in a production environment, so I can't upgrade right now).
reply other threads:[~2011-05-16 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=148857.21069.qm@web120703.mail.ne1.yahoo.com \
--to=amscopub-mail@yahoo.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 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).