[Top][All Lists]

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

[O] source block variable expansion

From: Rick Frankel
Subject: [O] source block variable expansion
Date: Wed, 11 Jan 2012 19:13:17 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

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"

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

reply via email to

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