From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: source block variable expansion Date: Wed, 11 Jan 2012 19:13:17 -0500 Message-ID: <20120112001317.GA25637@BigDog.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl8uS-0006rm-Pr for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 19:52:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl8uR-0001Im-Rk for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 19:52:52 -0500 Received: from [204.62.15.78] (port=57507 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl8uR-0001Ii-Pu for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 19:52:51 -0500 Received: from BigDog.local (pool-173-68-170-125.nycmny.fios.verizon.net [173.68.170.125]) by mail.rickster.com (Postfix) with ESMTPS id 2190C221AB for ; Wed, 11 Jan 2012 19:13:17 -0500 (EST) Content-Disposition: inline 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 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