From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aOWwLto2dmBrdwEAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 02:27:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kK17KNo2dmBNPQAAbx9fmQ (envelope-from ) for ; Wed, 14 Apr 2021 00:27:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CFBE1DA0A for ; Wed, 14 Apr 2021 02:27:06 +0200 (CEST) Received: from localhost ([::1]:47420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWTN2-00017A-KH for larch@yhetil.org; Tue, 13 Apr 2021 20:27:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWTMT-000172-NQ for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 20:26:29 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:40637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWTMQ-0002Bf-Qn for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 20:26:29 -0400 Received: by mail-qk1-x732.google.com with SMTP id 7so19829829qka.7 for ; Tue, 13 Apr 2021 17:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fbsBzG7EZuzMDzxtsdL3rSWb6QvAVjbZoHh6O6QNEmA=; b=j83JGWm+C4j++qxfPVZ6V+twugano0+tL8dXZGeFE/sKfTwHtxVuVagDJFcN3g9aJj RVl4YI8wr3oG4vYllCRRwSOtb1REr9WDaBjvixIB7qV39JPH3TaLYy4n7wuk6OupeZQz FX/y61Xf4beSHEnb55AYKl1lffCXSeUnolSIFiUlP7x4m3TrFTyqvpt0jRSmXqKns6n/ 5h8d4v6PSXD6mWcQ5Oyhm6kLAIIvdTYICdAUrkv0K1LE34eq//lpNf3744pdQGydPVkg BiRk/DOGLs3loNKFVzEcdII5xWkO/REhrbhmqGkZE7yS+p+6SqdShD84ePEqdeSrjP4w jsTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fbsBzG7EZuzMDzxtsdL3rSWb6QvAVjbZoHh6O6QNEmA=; b=ZKMthej0LwmYBXnY1yGY2mkCu5WLtH2COV/z6F4j+vUFmcuzhJ669TwmagweCP1Wnt 1AgqxfNeFJvzuRy/OR2V74sy+JgpUTr+B1n+NT3fDzAB37zxVOK/kLfERCrmwHRHw13q Vm/oSJH3FUpdajvMUVxNwBp6PfL484ihmnwhJFs/rGebrA17KAeTjRwiYW0QxmTYNNVl a66qMs3ON/JlQqNNX4kHs1LmVonHwhTjq+lSAwDQXR9LADNsP7PQCfH34X1L/VknqPHB 38E/DLMYwhsYmg1qkkWyyrntzF6bAtopWvZj2wbIlLJFr0PQ3U9olSoCF8M7NZGUWSlU mJAQ== X-Gm-Message-State: AOAM530Wrr3EdX7oQzbF484uD3goBKzbA0Tbe9WD1AoZVrsrfwivXlqX Yf3y8zgUzDYYv/+XiWYfwC5PnNxcCNw= X-Google-Smtp-Source: ABdhPJxZiuXCAvRD+8X6iRtUsHUHgzcOuCTWqwiDmGPfqpTAt4vKAt4c7UQg/YJyDTtrYDqPO7b+Ag== X-Received: by 2002:a37:b947:: with SMTP id j68mr28927039qkf.108.1618359985416; Tue, 13 Apr 2021 17:26:25 -0700 (PDT) Received: from cibola.cibola (pool-108-45-87-170.washdc.fios.verizon.net. [108.45.87.170]) by smtp.gmail.com with ESMTPSA id 81sm10387143qkl.121.2021.04.13.17.26.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 17:26:24 -0700 (PDT) From: "Kevin M. Stout" X-Google-Original-From: "Kevin M. Stout" Date: Tue, 13 Apr 2021 20:26:23 -0400 To: Ramachandran Lakshmanan Subject: Re: Is it possible to #+include: src blocks and tangle them too? Message-ID: <20210414002623.GA20677@cibola.cibola> References: <87k0p7xjxk.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0p7xjxk.fsf@nicolasgoaziou.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=kevin.m.stout@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618360026; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fbsBzG7EZuzMDzxtsdL3rSWb6QvAVjbZoHh6O6QNEmA=; b=S83rKnUaiLe/f16QPyvSX7mVl8tw/N2oWYsPFpLPOB5q6ixmgMMmYxrRtu4MjEpQvcASYt yfb9mSfV38nJtVTJg/hq40bMRYAbMB93As+LZGRP3YYIgeCceLtrq/uy9S3HsVYHcWlQMn MgyQTQ/kMOPwr1v/Go/wl66719QZpCmhwTdUzdm9AuqizfaLwsa7UXUUmlUaAyOZdfQ6C0 gpdv+vCFS0tV6okoUArst4wycDf2DA8EKpmIIPQhBEkQYVxfvIufnZYqCDPTGigIvzXUZX 6/jhRz+TsivFN9ztyDPeWfAWkHxb+Z/84P/rHH+uZwIfgyReawjVuB04xH68hA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618360026; a=rsa-sha256; cv=none; b=uPIvXMCkoENXJwTwExn5q1Vz0bWyPtXvmZcjfDsqY17yR3MQSe13SSaGPCHRVgOpoFkdhm uuEQIr1Bh4tKdvRfYIKdhwYECC3it9G6ZmEj0/S/xsQngjz06LFjc9P5OPGHblxG+kkVro uXkPik+r7KLhzlBNCfyTTZsgj6WwHunop8+NodaMJfbvHwoRke4/ndN2z6bEvtrPVAao9g CoD0ZVetZmYR5s+9ln3x2+6ZzYzvz4vvzGIjxarFYsx/J3BXg8TH0usie6iTAh9ECMdy+h KXFnb4Qv5eKEiaJk+2qPupMykU9hLmW31ZB0aaGJaVpxPBqocf5StLfz/xbvrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=j83JGWm+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 0.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=j83JGWm+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 3CFBE1DA0A X-Spam-Score: 0.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: z21qRfWOi91q On 2021-04-12 23:38, Nicolas Goaziou wrote: > However, you may try calling `org-export-expand-include-keyword' from > `org-babel-pre-tangle-hook'. Untested. I've done this in the past and can verify that it works well. That said, it by definition creates cross-talk between org files, with all the potential for name collisions and the like that that implies. One could avoid such problems by adding some kind of prefix to the block names in the included file (maybe "common/" or "xyzzy-"). (Some kind of automatic prefixing on inclusion might be cool.) --Kevin M. Stout