From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WBj8H6VBdWB4QQEAgWs5BA (envelope-from ) for ; Tue, 13 Apr 2021 09:00:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IJDWGaVBdWCoHwAAB5/wlQ (envelope-from ) for ; Tue, 13 Apr 2021 07:00:53 +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 D4272137C1 for ; Tue, 13 Apr 2021 09:00:52 +0200 (CEST) Received: from localhost ([::1]:50454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWD2Z-0001Ea-SF for larch@yhetil.org; Tue, 13 Apr 2021 03:00:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWD1i-0001DO-Sn for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 02:59:58 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:47051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWD1g-0005ak-Bk for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 02:59:58 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d124so10791557pfa.13 for ; Mon, 12 Apr 2021 23:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=fKEjYa/b8bXGjPpBAi3cRJo0+dMVJtn4aJ/p6ITNBWQ=; b=oaTSvDlwBufshSEpungqaQBGorG26jl/KTxi+cY11U94Pk5w0RXtqr+VzW8hoRDVBM 3RajFvmdcpQRfjhCGPRnTNlwM3vuLzRcNJtNMNh3Dyh+xv04A9KKBGwID954xRRLZYHN VzADO7mitm67ikxvRhT83CIJP+D/fc4h17XzCKY0oMec/yNMb55RZP1hfQ9aY0Sj32TJ dgE+ZmhjjB07rrTyJXQSQbTm+p+7X9GeErao7bzEnB4ihOP8VEcX1vRRlZ4jVQfX8icq IuNIfv86MHCygLwywd1ogo6FCjHRyymnMe5hoOAAULYzfmlORINKPeAhxqwdaWn+KOYB 7UeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=fKEjYa/b8bXGjPpBAi3cRJo0+dMVJtn4aJ/p6ITNBWQ=; b=QLEM3cVgE2NE35uf69GeZfW6rBxfvTp3VA/hiGnf4iSyht6RaCp7f76Nkg3ZqZXHGD /p/sJ+5Cuf9fC8G8lUW/NmKo75rF+t9GdAiQTOhoC9qrgGLnY5ptQFWFQCjmgMLX3ucp eMRPAEp6GF8qviUpXH2g45E2p6UqlKDFRgFhBAuhHHGLWWhdYKTa9zJISejr97uM+Zcx c/yMtuqrjF5ik0lyHj0QFaDuhTQTmZAMZ/kaADapQA3i86yszoYv3YJ2pWULy3ddPPZz 1WMNoJE37KHBw2p01PKpaisjCrHMfONYtVoWQ3vgPc9vyrz5t7jR1Gc8Kq9Vc9MDlUvZ vO/A== X-Gm-Message-State: AOAM533HNBBo4HgHne9XqE5y0tvH+NEhT1gKOGkrmUuEhlp4MffSgkTH ZQTqzL6FDBCvc9lwNC4gLyilbN0F4gA= X-Google-Smtp-Source: ABdhPJwAxoHwvyRrrGDvRH5ZOdVNvk+HqlulcK2AX8I4x3i8/PoZ6p+0GNwHvpvFMLGsEmcJNUnMmQ== X-Received: by 2002:a63:385b:: with SMTP id h27mr415245pgn.360.1618297194019; Mon, 12 Apr 2021 23:59:54 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id 19sm2140147pfy.77.2021.04.12.23.59.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 23:59:53 -0700 (PDT) References: <87k0p7xjxk.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Nicolas Goaziou Subject: Re: Is it possible to #+include: src blocks and tangle them too? In-reply-to: <87k0p7xjxk.fsf@nicolasgoaziou.fr> Message-ID: <87k0p6y8ih.fsf@gmail.com> Date: Tue, 13 Apr 2021 14:59:50 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x42d.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, Ramachandran Lakshmanan 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=1618297253; 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=fKEjYa/b8bXGjPpBAi3cRJo0+dMVJtn4aJ/p6ITNBWQ=; b=uj4yY2zCm1Ctk8nxxJblPHoozlDcDzZbzyy+F/Y7+JAjIs5WSO5m1JK3HVMu+AwrCPWiPo Txnowkzjz1eSYMDLhXipkTyMhfFazwfeecg7cCskeqYxuZyqeHpgUMnfz4Qw1Ay8vZksuz jIHw8+oKIJs7wZjNBr/5ImXzfrybCkAK8yr4N+4ulcjU4KHl8VedQYDzR1a+xdnFGL7eDp zytN63XZECx2XnL/tRDaznuZEMe0+xiZfimKbJ5eipgTmUj5YKjwzaJgO3Ik/CXDuie6kU xmvFTa7vWllDTOYJnAjORalMEwELm8Kx0QilFtTd7zJMVYJIoaSMjrudrf/JfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618297253; a=rsa-sha256; cv=none; b=pB0rtyZvtYTKpUCfqMjufuD7+qpDyrKQgidCgNuE63Ida6JEB1mRA5FNepvIuJG9JJwz2k mn1Q121miyGZkZUDb9F6Ivtwj5OjHCxp4oJ3+Ot6LWMMQpf7G0bYzKOCkz3TIh4iz2X8Ql l30hkv3z9HclifaZn5NNn5qjhSYOVDJA1LzYWNBt9gFR0drxvDpP9KjVKM0LqLLcjx1se0 qGLex1ez/rCHnsnKIFp0cixAN3Y0Bym1ffnKMzqYdsVnttxpTV37fnl5jHW6CsQAabor0b caeOb5CDREP7nj8PWkjzkkhVqFeCR+72ClMq043WPjsa/qRKkRgM4zfuhhuCEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=oaTSvDlw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=oaTSvDlw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: D4272137C1 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 17aoQAFmDn4m Nicolas Goaziou writes: > #+include is a keyword specific to export. I doubt it would work with > tangling out of the box. > > However, you may try calling `org-export-expand-include-keyword' from > `org-babel-pre-tangle-hook'. Untested. Doom has been doing this for a while with config.org tangling: https://github.com/hlissner/doom-emacs/blob/ce65645fb87ed1b24fb1a46a33f77cf1dcc1c0d5/bin/org-tangle#L155 -- Timothy