From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id tln/Lxq+dGAfkgAAgWs5BA (envelope-from ) for ; Mon, 12 Apr 2021 23:39:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iBXaKBq+dGCAMwAA1q6Kng (envelope-from ) for ; Mon, 12 Apr 2021 21:39:38 +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 2AA1724FFE for ; Mon, 12 Apr 2021 23:39:38 +0200 (CEST) Received: from localhost ([::1]:33262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lW4HR-0004YJ-BR for larch@yhetil.org; Mon, 12 Apr 2021 17:39:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW4GY-0004X3-Pv for emacs-orgmode@gnu.org; Mon, 12 Apr 2021 17:38:44 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lW4GS-0000GI-C7 for emacs-orgmode@gnu.org; Mon, 12 Apr 2021 17:38:40 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 30B02240006; Mon, 12 Apr 2021 21:38:32 +0000 (UTC) From: Nicolas Goaziou To: Ramachandran Lakshmanan Subject: Re: Is it possible to #+include: src blocks and tangle them too? References: Mail-Followup-To: Ramachandran Lakshmanan , emacs-orgmode@gnu.org Date: Mon, 12 Apr 2021 23:38:31 +0200 In-Reply-To: (Ramachandran Lakshmanan's message of "Mon, 12 Apr 2021 16:35:08 +0100") Message-ID: <87k0p7xjxk.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=1618263578; 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; bh=Y8ns15dq7Wq4zfy2jmt5Weh8ss02Ri2C9ok8jGGpbEs=; b=tHtHqrvZ7tRrdvIGX9sMVS3iOYcQlbFFdBTG5wucghM5//FUsFIPQO5K27OwMf15D07j6G 8z0NrgFyOE73x9d1MBPnGqIdNqvmwX207YtExVrBSsdKifiujNt3VKG3KBB9MNb275ZqwA ONwhoju8u47TyAsDPds1wffutMa5gJA2WEi1NRtHS9A/yLqhcqUGlo/r7E+axo0pKBX85V bdh/RfFDCwICZ9/kGDAPOjw2AJyWloxCtvX2MDdtDTm7OS1lO447PImhPrIPzpMFmCX2xS PXDy5ahSh+k/NmBBhSEGVCq2ZlD6C9YNlX5DxQ4uRxIG20g7hBso0ZHE42ziqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618263578; a=rsa-sha256; cv=none; b=qaKk6tLIo0uYFl00UiGnCvNJ27B3Zm4qI01YrT7rHF9yVFEMJSEpkmEzvWE8pwOlYtF77L nih8Y16LzHCyolSkETSeGc8zY3epM7rcPu3fIZwlEJnUQqdey9ZErM9CogQrONzc98vtp0 tLvcs/kSv2fURkLt/iDTTIwHA4DMyBBwRPjcfU7o0fuRiko3lZyx8c2o5km+wuRfGFqkmT RTsOcYtV2RrKmVMT3ll8kIliba4BGpPjNbe6bJgmcPsND3xjn4ZryyANuRXruXixaDpP5v KGCESSa7WwhVRzxjw5kwsRTn6tbMXlra0PyHj+5ZzSN8kPnF7QySacTEU7YQ3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 2AA1724FFE X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: NT/IJqUaYIYV Hello, Ramachandran Lakshmanan writes: > I have been wanting to include a number of small Common Lisp snippets in > individual files which I then include into a "master" .org file using: > > #+include: "snippet.org" src lisp > > Within snippet.org I have a src block such as: > [...] > I read somewhere that this is not possible in orgmode. Is this true? And > if not, can you point me to the right documentation? #+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. Regards, -- Nicolas Goaziou