emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Jarmo Hurri <jarmo.hurri@iki.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org src blocks and multiline macros
Date: Thu, 2 Aug 2018 07:24:21 -0400	[thread overview]
Message-ID: <CAFyQvY2M9zjnJH_bQBR9Oj7M1fAhOyx434R8nngHRG_sL4ivcQ@mail.gmail.com> (raw)
In-Reply-To: <87effhb7lu.fsf@iki.fi>

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

Hello,

On Thu, Aug 2, 2018, 2:34 AM Jarmo Hurri <jarmo.hurri@iki.fi> wrote:

>
> Greetings.
>
> I am once again facing a situation where I would like to define a
> multiline org macro.


I'm not sure what that means, but based on your example a different
solution might work for you.

2. If not, could we have this feature? This would give us immediate
>    multiline macros in the following style, where referring to the value
>    of the variable could be done macro-style.
>
> #+HEADER: :var val1=foo
> #+BEGIN_SRC org :var val2=" bar"
>   Currently this gives me nothing but {{{val1}}}{{{val2}}}.
> ...
>

Org macros don't get evaluated inside src blocks as far as I know. But
Noweb might help you. Look for this feature in Org manual. I use Noweb as
"macros for src blocks".

> --

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1580 bytes --]

  reply	other threads:[~2018-08-02 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-02  6:33 Org src blocks and multiline macros Jarmo Hurri
2018-08-02 11:24 ` Kaushal Modi [this message]
2018-08-02 12:32   ` Jarmo Hurri
2018-08-02 16:50     ` Berry, Charles
2018-08-03  6:16       ` Jarmo Hurri

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=CAFyQvY2M9zjnJH_bQBR9Oj7M1fAhOyx434R8nngHRG_sL4ivcQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@iki.fi \
    /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).