From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: source block variable expansion Date: Thu, 12 Jan 2012 07:48:15 -0700 Message-ID: <87sjjl7z2p.fsf@gmx.com> References: <20120112001317.GA25637@BigDog.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlM30-0007g2-O6 for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 09:54:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlM2w-0006VR-Gv for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 09:54:34 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:49345) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RlM2w-0006VK-8R for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 09:54:30 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I just pushed up a fix for this issue. Thanks for the report, Rick Frankel writes: > 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 > -- Eric Schulte http://cs.unm.edu/~eschulte/