all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Run lisp code in macros?
@ 2011-04-28 20:56 amscopub-mail
  2011-04-29  6:31 ` Christian Moe
  0 siblings, 1 reply; 2+ messages in thread
From: amscopub-mail @ 2011-04-28 20:56 UTC (permalink / raw)
  To: emacs-orgmode

Is there a way to apply text transformations to arguments in macros?

For example, say that you want to change the first argument to capital letters? or transpose the letters of the second argument? 

How would you do that? I imagine you would have to run elisp code, perhaps babel is the answer?

Sample code:

#+MACRO: test Change $1 to uppercase, somehow.

* Hello World
{{{test(test phrase)}}}

Desired HTML export:

TEST PHRASE to uppercase, somehow.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-29  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 20:56 Run lisp code in macros? amscopub-mail
2011-04-29  6:31 ` Christian Moe

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.