From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns384221.ip-46-105-121.eu ([91.121.113.132]) by ns302843.ip-94-23-41.eu with LMTP id Ek8QKVfNiF7VOwAAu8+pOQ (envelope-from ) for ; Sat, 04 Apr 2020 18:09:27 +0000 Received: from aspmx1.migadu.com ([91.121.113.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ns384221.ip-46-105-121.eu (Dovecot) with LMTP id LYaJKyvLiF4SKwAAcqd/iQ ; Sat, 04 Apr 2020 20:09:27 +0200 Received: (Migadu outbound); Sat, 04 Apr 2020 20:09:27 +0200 Authentication-Results: aspmx1.migadu.com; iprev=pass; spf=pass smtp.mailfrom=gnu.org Received-SPF: Pass (aspmx1.migadu.com: domain of gnu.org designates 209.51.188.17 as permitted sender) receiver=aspmx1.migadu.com; identity=mailfrom; client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from= Received-SPF: None (aspmx1.migadu.com: domain of lists.gnu.org does not designate 209.51.188.17 as permitted sender) receiver=aspmx1.migadu.com; identity=helo; client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from= X-Haraka-FCrDNS: lists.gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by aspmx1.migadu.com (Haraka/2.8.20) with ESMTPS id 30961F6C-4412-4496-947B-B28A8DF0A356.1 envelope-from (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Sat, 04 Apr 2020 20:09:19 +0200 Received: from localhost ([::1]:41218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKnEL-0003Ab-KT for larch@yhetil.org; Sat, 04 Apr 2020 14:09:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38749) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKnDv-00039i-3E for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 14:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKnDr-0006oG-Ih for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 14:08:50 -0400 Received: from fethera.tethera.net ([2607:5300:60:c5::1]:48056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKnDr-0006nF-FE for emacs-orgmode@gnu.org; Sat, 04 Apr 2020 14:08:47 -0400 Received: from remotemail by fethera.tethera.net with local (Exim 4.92) (envelope-from ) id 1jKnDo-0006oq-2U; Sat, 04 Apr 2020 14:08:44 -0400 Received: (nullmailer pid 594001 invoked by uid 1000); Sat, 04 Apr 2020 18:08:42 -0000 From: David Bremner To: "Berry, Charles" Subject: Re: tangling from multiple files In-Reply-To: <9C56E5CA-F558-473E-AC56-9B4278C79344@health.ucsd.edu> References: <87o8sueff4.fsf@tethera.net> <87imj1i143.fsf@tethera.net> <9C56E5CA-F558-473E-AC56-9B4278C79344@health.ucsd.edu> Date: Sat, 04 Apr 2020 15:08:42 -0300 Message-ID: <871rp32ket.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:5300:60:c5::1 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Haraka-ASN: 22989 209.51.188.0/24 X-Rspamd-Score: -5.709156 X-TUID: JnI8XfhM4y2V "Berry, Charles" writes: > Oops. Correction below. > >> On Mar 18, 2020, at 7:38 PM, Berry, Charles wrote: >> >> >> Right. It does not work directly for tangling. So also use >> >> #+export_file_name: b2.org >> >> (say) >> >> Then load ox-ob.el, > > load ox-org.el, rather. > >> export as C-c C-e O o (org-org-export-to-org), visit b2.org and tangle from there. I finally got around to trying this. In a broad sense it works, but (at least with default settings) it loses the keywords on individual source blocks. if a.org looks like #+include: c.org #+export_file_name: foo.org #+begin_src python :tangle foo.py :noweb true <> def hello(): test() #+end_src then foo.org looks like # Created 2020-04-04 Sat 15:03 #+TITLE: #+AUTHOR: David Bremner #+name test.py #+begin_src python def test: print("test") #+end_src #+export_file_name: foo.org #+begin_src python <> def hello(): test() #+end_src Since my org files all tangle to multiple source files, this doesn't really work for me. I guess I could have a single wrapper file for each file I want to tangle to, but I have other keywords e.g. :shebang, whose loss will still break things. d