[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] source block variable expansion

From: Sebastien Vauban
Subject: Re: [O] source block variable expansion
Date: Thu, 12 Jan 2012 09:40:06 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (windows-nt)

Hi Rick,

Rick Frankel wrote:
> Since org-mode v7.8, editing a code block in an indirect buffer causes
> any referenced code blocks to be executed. While this behavior is
> desired for viewing code in an indirect buffer (as the behavior has
> always been) it is not for editing (esp. if the named block takes a
> long time to run).
> Given a referenced source block:
> #+name: var
> #+begin_src elisp
>   "you shouldn't see this in the mini-buffer"
> #+end_src
> When editing the followiing code block (via =C-c '=), the above block
> (=var=) will be executed. The message =executing Elisp code block
> (var)...= will appear in the =*Message*= buffer and the message above
> will appear in the mini-buffer.
> #+name: edit-test(var=var)
> #+begin_src perl
>   $var;
> #+end_src

Just FYI, note that this variable assignment is/shoud be deprecated: you have
to use:

  #+name: edit-test
  #+headers: :var var=var
  #+begin_src perl


  #+name: edit-test
  #+begin_src perl :var var=var

Best regards,

Sebastien Vauban

reply via email to

[Prev in Thread] Current Thread [Next in Thread]