From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Weylandt Subject: Tangling src blocks to files as part of export Date: Thu, 13 Nov 2014 10:54:50 -0500 Message-ID: <3B947464-9723-45DA-9EB4-D84633366471@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xowje-0002VJ-Pf for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 10:55:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XowjW-0004Qg-NT for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 10:55:02 -0500 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:53539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XowjW-0004QR-Jn for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 10:54:54 -0500 Received: by mail-qc0-f175.google.com with SMTP id b13so12645255qcw.6 for ; Thu, 13 Nov 2014 07:54:53 -0800 (PST) Received: from [10.128.54.182] (mobile-166-171-184-103.mycingular.net. [166.171.184.103]) by mx.google.com with ESMTPSA id g3sm6589886qaf.2.2014.11.13.07.54.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Nov 2014 07:54:51 -0800 (PST) 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 Is it possible to have certain blocks tangled as part of export so that they= are available as input files to later source blocks? E.g., #+BEGIN_SRC python :tangle hello.py print "Hello World" #+END_SRC #+BEGIN_SRC sh python hello.py #+END_SRC If I tangle before running, then the second code block will work; else, it f= ails because 'hello.py' is not found. [1] I can run tangle and export in a row (and I have my own function to do just t= hat) but is there a native org way to do so? Michael [1] My actual case involves a JAGS model file and the R code to run it, so e= xecuting the first source block directly isn't an option.=20=