From mboxrd@z Thu Jan 1 00:00:00 1970 From: mcg Subject: tangling files on export not working properly Date: Sun, 27 Nov 2016 18:27:31 +0100 Message-ID: <12c602f5-dd6a-f961-7432-a0ede7dd0e09@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB3Es-0001dl-KV for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 12:27:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB3En-0003NJ-TF for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 12:27:42 -0500 Received: from mail-wj0-x22d.google.com ([2a00:1450:400c:c01::22d]:36553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB3En-0003MJ-CT for emacs-orgmode@gnu.org; Sun, 27 Nov 2016 12:27:37 -0500 Received: by mail-wj0-x22d.google.com with SMTP id qp4so97170960wjc.3 for ; Sun, 27 Nov 2016 09:27:36 -0800 (PST) Received: from [192.168.2.29] (48.red-195-235-215.staticip.rima-tde.net. [195.235.215.48]) by smtp.googlemail.com with ESMTPSA id k11sm24441786wmb.18.2016.11.27.09.27.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Nov 2016 09:27:32 -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" To: emacs-orgmode@gnu.org Hello, When exporting my document to latex I want org-mode to tangle a few code blocks. #+NAME: tangle_files #+BEGIN_SRC emacs-lisp :exports results :eval query-export (org-babel-tangle-file "~/thesis/chapter/NH.org") #+END_SRC When I run the code block manually it works fine *Messages*: "Tangled 2 code blocks from NH.org" However, even though the is run on export, nothing gets tangled: "Tangled 0 code blocks from 04.NH.org" Is there any explanation for this? Anything I'm overlooking?