From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UGBaE90OI2JmmQAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 08:18:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6Nz8C90OI2LfigAAG6o9tA (envelope-from ) for ; Sat, 05 Mar 2022 08:18:53 +0100 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 CE8253062A for ; Sat, 5 Mar 2022 08:18:52 +0100 (CET) Received: from localhost ([::1]:58828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQOgl-0005Ym-S7 for larch@yhetil.org; Sat, 05 Mar 2022 02:18:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQGz5-0007fK-KU for emacs-orgmode@gnu.org; Fri, 04 Mar 2022 18:05:17 -0500 Received: from mail-108-mta98.mxroute.com ([136.175.108.98]:35727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQGz3-00015g-JS for emacs-orgmode@gnu.org; Fri, 04 Mar 2022 18:05:15 -0500 Received: from filter006.mxroute.com ([140.82.40.27] 140.82.40.27.vultr.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta98.mxroute.com (ZoneMTA) with ESMTPSA id 17f57296626000763e.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Fri, 04 Mar 2022 23:00:05 +0000 X-Zone-Loop: b1586b15738fbbe41f9ccc03076e3704511bb5a1124a X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zacque.tk; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7zbpciJfNPMXNrKog9vC4+zkHK3X9Wt/ZaOhBgjHH/8=; b=ZKBx5MoZQwFyq1N3O/L/IWLTnW uqcwHtxSygZRSVpNDh2LJ5CnayTpqyy3e+6by2Gd5jAXFBLxzsoasHfl1zjQHFuiKcNPWdBk4mMdi b5JfrmGwKdxjzcFzURNUxH+yyuAfkr7+DYwyy+XdennHUmfYTIuIhlAPpHNuWb5snvgA0Snbrs68s NzWigxZNai/sBcE6PMgcMDFx0ZC7n7T/YngcuK9+507N/06EUMiazqNSXpyuVBVlR+lyS2+lJoQ8M Dzx1ftyTHWuiWSnLS1nnxq+DJPNGiiAItDLutJ2rIaLwpIloIPpUQVsZFq+Gt8teblsc3IDsH89J2 qCrq7hEA==; User-agent: mu4e 1.6.10; emacs 27.2 From: zacque To: emacs-orgmode@gnu.org Subject: Tangle Source Block Only to a Specific Location/Target in a File Date: Sat, 05 Mar 2022 06:50:58 +0800 Message-ID: <87czj1tjbn.fsf@zacque.tk> MIME-Version: 1.0 Content-Type: text/plain X-AuthUser: technical@zacque.tk Received-SPF: none client-ip=136.175.108.98; envelope-from=technical@zacque.tk; helo=mail-108-mta98.mxroute.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Mar 2022 02:17:30 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646464733; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7zbpciJfNPMXNrKog9vC4+zkHK3X9Wt/ZaOhBgjHH/8=; b=RcUMT0hAig+c4oxeNop5uyROm8A5ni2yfOPRekLkBuaDfubkGx9H0mUWFYEdbfQ0OXc52M HJ9423Q0zqsaIb8ZUWjHyhWi0Jl38kHWWbmu6p4pBrWWhvinFtKM+31EtNFTTTfZ6SJicv cWGiJhuRID+upKxOElvDrSqxPjaF+4ozZB9PHhWJBQBpdG0Fe0xyPaPx4K9NaUwmKV39KG 9CvP3xeuXdstUHTt764yFGd6gRmWfI31zmh9tjn3JJUpGhiNEpIEcXGPe9SlihlALFuynl THNDnjOhkkAqG9ov77bXUkxi15VNVsxFqTq1rRE6AMcZ/dK5juUHdP83zR30fA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646464733; a=rsa-sha256; cv=none; b=elcd6X0XyblgC/OgF42hDL9kKhObLIihnn8na+xoKYzAwBAX7B3Mx6UyTfvjV69Fh2lYx4 gXr0lyIzXslqzWwDyq8quXzPbGzFfXfa8m9cGixA5MkWEcUD8bCo7zbx+zTGkFuD6DjU60 UOA3X9l6S/J8t6HFqe73QN43GA6YUorv8+dbGlgd1XBds5LHCgyiArt/KH6j3z++kc6wVC 5BFgMMBXbYRsavd2HqG6xxq1yY6qM49IrpeIeeRUQnXsv+CTVYB7sLRx/apsBRXocxh3+q dF2eRTHAXLtaiMoZKtlRi9EOyX+XpvSIy+40GGJifOudiRmrvlfyQA458YQsHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zacque.tk header.s=x header.b=ZKBx5MoZ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zacque.tk header.s=x header.b=ZKBx5MoZ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CE8253062A X-Spam-Score: 0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2f8I0QTh9jXe Hi, I want to tangle a source block only to a specific location in a file, without modifying the rest of its content. E.g. given this source block: #+begin_src emacs-lisp :noweb yes :tangle /path/to/foo :target-name <> (+ 1 2 3) (print "Hello, world") <> #+end_src Upon tangled, the "foo" contents will change from this: #+begin_src emacs-lisp ... (with-eval-after-load 'bar ... ;; BEGIN RECEIVE ORGSRC <> ;; END RECEIVE ORGSRC <> ...) ... #+end_src to #+begin_src emacs-lisp ... (with-eval-after-load 'bar ... ;; BEGIN RECEIVE ORGSRC <> (+ 1 2 3) (print "Hello, world") <> ;; END RECEIVE ORGSRC <> ...) ... #+end_src Note: The target syntax in the target file imitates the syntax for receiving radio tables on purpose. Is there any idea how I can achieve this? -- Cheers, zacque