emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Olaf.Hamann" <O.Hamann@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] would like to to do simple text block expansion with parameters or multiline macro replacement text
Date: Thu, 12 Apr 2012 13:04:03 +0200	[thread overview]
Message-ID: <4F86B6A3.5070203@gmx.net> (raw)
In-Reply-To: <4F8077B8.2010603@gmx.net>

Am 07.04.2012 19:22, schrieb Olaf.Hamann:
> Hello all,
>
> Is there an easy way to do a simple text block expansion with
> parameters, I mean sth like this:
>
> #+begin_src xsl :tangle outputfile :noweb tangle
> {{{gCV(argument1,param2)}}}
> #+end_src
>
> #+MACRO: gCV replacement text...
> ...spread over different...
> ...multiple lines with arguments like $1 ...
> ...and $2 and so on...
> ...
> #+end_macro
>

I think I will try to adapt m4 as org-language so that it can be used 
for executing src-blocks.
That may fit my needs and #+MACRO stays good for oneline replacement

  reply	other threads:[~2012-04-12 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07 17:22 [babel] would like to to do simple text block expansion with parameters or multiline macro replacement text Olaf.Hamann
2012-04-12 11:04 ` Olaf.Hamann [this message]
2012-04-21 11:09   ` Olaf.Hamann
2012-04-21 15:33     ` Eric Schulte

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=4F86B6A3.5070203@gmx.net \
    --to=o.hamann@gmx.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).