From mboxrd@z Thu Jan 1 00:00:00 1970 From: amscopub-mail@yahoo.com Subject: Run lisp code in macros? Date: Thu, 28 Apr 2011 13:56:40 -0700 (PDT) Message-ID: <59684.43075.qm@web120702.mail.ne1.yahoo.com> Reply-To: amscopub-mail@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFYGQ-00076q-No for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 16:56:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFYGQ-0006HV-5K for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 16:56:42 -0400 Received: from nm14-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.52]:29050) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QFYGQ-0006H0-06 for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 16:56:42 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.