From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Weylandt Subject: Re: Tangling src blocks to files as part of export Date: Thu, 13 Nov 2014 11:15:34 -0500 Message-ID: <871A2C12-586B-4E42-AEE9-31BFAA4C8EBF@gmail.com> References: <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]:46960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xox3f-0003uf-Ec for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 11:15:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xox3Y-0002P1-Hl for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 11:15:43 -0500 Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:37388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xox3Y-0002Ox-EY for emacs-orgmode@gnu.org; Thu, 13 Nov 2014 11:15:36 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so753550qcz.5 for ; Thu, 13 Nov 2014 08:15:36 -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 c63sm24312287qgf.14.2014.11.13.08.15.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Nov 2014 08:15:34 -0800 (PST) In-Reply-To: <3B947464-9723-45DA-9EB4-D84633366471@gmail.com> 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" > On Nov 13, 2014, at 10:54 AM, Michael Weylandt wrote: >=20 > Is it possible to have certain blocks tangled as part of export so that th= ey are available as input files to later source blocks? >=20 > E.g., >=20 > #+BEGIN_SRC python :tangle hello.py > print "Hello World" > #+END_SRC >=20 > #+BEGIN_SRC sh > python hello.py > #+END_SRC >=20 > If I tangle before running, then the second code block will work; else, it= fails because 'hello.py' is not found. [1] >=20 > I can run tangle and export in a row (and I have my own function to do jus= t that) but is there a native org way to do so? Adding org-babel-tangle to the org-export-before-processing-hook does the jo= b, but I'd still be interested in knowing if there's a more official method.= =20