emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Aaron Ecay <aaronecay@gmail.com>
To: Thorsten Jolitz <tjolitz@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [BUG] :header-args+:
Date: Wed, 06 Aug 2014 01:02:49 -0400	[thread overview]
Message-ID: <87silaqkg6.fsf@gmail.com> (raw)
In-Reply-To: <87ha2ut5pa.fsf@gmail.com>

Hi Thorsten,

2014ko uztailak 6an, Thorsten Jolitz-ek idatzi zuen:
> 
> Hi List, 
> 
> doing C-c C-c on the first src_block
> 
> ,----
> | * A
> | ** B
> |     :PROPERTIES:
> |     :header-args: :var name=dblock-name
> |     :header-args+: :var prms=dblock-params
> |     :END:
> | 
> | #+begin_src emacs-lisp 
> |   (format "\n#+begin: %s %s\n#+end:\n" name prms)
> | #+end_src
> | 
> | #+name: dblock-params
> | #+begin_src emacs-lisp
> | foo
> | #+end_src
> | 
> | #+name: dblock-name
> | #+begin_src emacs-lisp
> | bar
> | #+end_src
> `----
>

You have an infinite regress.  In order to compute the result of the
dblock-name block, we need to resolve each of its :vars, which includes
dblock-name, so we try to resolve the same block again...

Converting the second and third src blocks to example blocks (leaving in
place the #+names) gives what you seem to be aiming for.

-- 
Aaron Ecay

  reply	other threads:[~2014-08-06  5:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 23:42 [BUG] :header-args+: Thorsten Jolitz
2014-08-06  5:02 ` Aaron Ecay [this message]
2014-08-06  8:34   ` Thorsten Jolitz

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=87silaqkg6.fsf@gmail.com \
    --to=aaronecay@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@gmail.com \
    /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).