From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Bremner Subject: Re: tangling from multiple files Date: Wed, 18 Mar 2020 22:29:00 -0300 Message-ID: <87imj1i143.fsf@tethera.net> References: <87o8sueff4.fsf@tethera.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55120) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEjzk-0008Sf-Uo for emacs-orgmode@gnu.org; Wed, 18 Mar 2020 21:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEjzj-0007rh-NN for emacs-orgmode@gnu.org; Wed, 18 Mar 2020 21:29:12 -0400 Received: from fethera.tethera.net ([2607:5300:60:c5::1]:36058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jEjzj-0007Yc-JQ for emacs-orgmode@gnu.org; Wed, 18 Mar 2020 21:29:11 -0400 In-Reply-To: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: "emacs-orgmode@gnu.org" "Berry, Charles" writes: >> On Mar 17, 2020, at 4:21 PM, David Bremner wrote: >>=20 >>=20 >> I've seen this question around e.g. stack overflow, but none of the >> answers I found seems really satisfactory. >>=20 >> I'd like to share a set of begin_src / end_src blocks in a.org between >> b.org and c.org; in particular b.org and c.org contain noweb references >> to names defined in a.org. Is there a better way than using >> (org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring >> manual action every time a.org changes. >>=20 > > > Put=20 > > #+include: ./a./org > > directives in b.org and c.org > > You might want to put the directives inside a non-exported drawer. See `o= rg-export-with-drawers=E2=80=99 docstring. This works fine (modulo the extra /) for exporting, but doesn't seem to work for tangling. Does it work for tangling for you; i.e. is b.scm produced with the two defines in it? d