From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: eval source blocks in a subtree when opening file Date: Tue, 4 Aug 2015 09:29:44 -0700 Message-ID: References: <8737zzl09i.fsf@tamas.ihs.ac.at> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMf69-00076z-OH for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 12:29:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMf65-0005iG-SD for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 12:29:53 -0400 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:37496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMf65-0005gi-Iu for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 12:29:49 -0400 In-Reply-To: <8737zzl09i.fsf@tamas.ihs.ac.at> 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: Tamas Papp Cc: emacs-orgmode@gnu.org On Tue, 4 Aug 2015, Tamas Papp wrote: > Hi, > [mock file deleted] > I would like to do the following: whenever I open the file in Emacs, I would > like to eval all the source blocks under the heading Setup. > > I have found org-babel-execute-subtree, but I cannot figure out how to call > it on the subtree "Setup" from a local eval. Name the first block in the subtree "start setup" (say). Then # Local Variables: # eval: (org-babel-goto-named-src-block "start setup") # eval: (org-babel-execute-subtree) # End: should do it. HTH, Chuck