From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UA+bAKZfz2VvgwAAqHPOHw:P1 (envelope-from ) for ; Fri, 16 Feb 2024 14:14:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UA+bAKZfz2VvgwAAqHPOHw (envelope-from ) for ; Fri, 16 Feb 2024 14:14:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=Z7mhW5EB; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708089253; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bWXinfQSQK0SvzC8jqc8gTy5MHz9R50ujvPoUIUTy+k=; b=dbvzh4NXY15f4nID03FQ/PShg2Do8rQECzhWtq3HAEH02kHl4FH+RPwexBqDALraJReB+J E8eLnKjjKbVamZ1xqPng9EW/8bhquh9ua41f4LOFIHzijCxTdFF09EfsoZ3i/XYaKnBVpz NLT2ni7z5MCIXTN1CbZLzZueBaELe1il4L5YA/k6msK9qgsVplIai4KhFBeqOegWxaBMsD 5GEvOUBE3EiO7M2L6djvAbeuUn8+l3F1sZK6HGoE7DO+37fDzjl0s3Cdr02RZRJeWIKJjA rL6c54HdnzK/n8tEDXxA6tj3L2p2uF7z8aspyAQ+4ahnpfyCHtlo7wHZKEaizA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=Z7mhW5EB; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1708089253; a=rsa-sha256; cv=pass; b=LGKhXC1UwL3jEH1KOZKkupB8o4vDKYeV6SxDtvDKiIw7lKe2F0Lbpj+ntfkOikw1e+o9rD A5GIGBDgc2ylcJf+WnIlEGIb7R9YQ6h2yelMPYvOno7bEKqBvN7d6H4F3KRQlkSkJOMzxf 1AYN0kQdFn+hoKqoXh4FPEfwGvxxHWJqbURZME6G4vALw1VO6Tfw24b1j6l39Q28lxaDDH oZOFMhiz/3WXAoK1V8I4POdYdo14h7pfRqrud9QhupnyGbfzk7WshYPCHUtiHjNameZ9Kr 9lOaDJAjjUS77dhNwHXET3O6iueLwOkgMxjyrnRKlTGgzrIzLl6DeIrkm5BqQg== 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 7A99C43CE0 for ; Fri, 16 Feb 2024 14:14:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ray1h-0008BJ-RF; Fri, 16 Feb 2024 08:13:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ray1b-0008AM-OW for emacs-orgmode@gnu.org; Fri, 16 Feb 2024 08:13:07 -0500 Received: from mail-vi1eur05on20700.outbound.protection.outlook.com ([2a01:111:f403:2613::700] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ray1Z-0002TA-Kb for emacs-orgmode@gnu.org; Fri, 16 Feb 2024 08:13:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GLnAdvUjGhH/uKZIVkuXjB+YzyNnGh5YlpN7JDunMZWfBu1ZQ5DatKrBjNoac491VeHcTvU2TLiNaZQ9qyc0l0V208sWzDduH/bH8LTko697ftE1sCcOPLzYECl2/AnwYop+/Z/OnfSbdeQ0FEdCTuMWym/AgKkvtj4kcSmOYntuZrsOHdsa6df/Wr+iSTTxLHOg8wM/FL2cJ22PQUE/WXtEzHzU7MbWNaHjQq3QlTAfZgQ30FGcCwkWS9RGnlRm1CFNt5XHrX3JSJUVwbHlX7BUaJYh+rEvURXsPRxacJ9rlA7SgmfXZIHyAi0Id2Qsg6R2SIOLfXT89W384wVIaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bWXinfQSQK0SvzC8jqc8gTy5MHz9R50ujvPoUIUTy+k=; b=ZYWhUOXzfAAdrT19OWwp/M92pMEAT4vW67kzFWD1f+Dh1hb1gpzPvtWrseQXM6XsNxa7+trvzKePcfGPgkWLkixF893gsVtQbZbN+M5f54XUmQz8p+5tDr9kdUoR/PBDf7PrjJ128NXTK6CwSnH3qJIaG6yB1BndiWGrNxxoW8WCsZVCH0zZcHHD08jAyViWtXEFyDrG/t8zIoxwLOoVdo8nt2VYb6ejTY1QHDu28TzaIPJfHrzyVxOYJfBUz28PkjJbOQX9GRdZSxUOJT1DmNemLvrxmlJGJtkkweV4cJQMe0SZJDQP+FvJ3eFD2J/44CyBhX25pyWw2Mzjm4Kd/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bWXinfQSQK0SvzC8jqc8gTy5MHz9R50ujvPoUIUTy+k=; b=Z7mhW5EBmWmwd/+sZiYZqo9qt6rwITCIAyKPnxub/bm+8UGhieiU9AmD3YNiwpLJiKZ0n/EeMq158JpcG2Sd2cgagWEKQC8VQOonPoC/5jv9VI+lScCaHtcVVTye2pxQ9ifYsBYmi+KSN/BKFlG1geGTo+DI0GVfYAOmJGJNSe0= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by AS2PR01MB10291.eurprd01.prod.exchangelabs.com (2603:10a6:20b:5e9::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Fri, 16 Feb 2024 13:07:59 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::a529:1f12:9ad1:e4f0]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::a529:1f12:9ad1:e4f0%7]) with mapi id 15.20.7292.029; Fri, 16 Feb 2024 13:07:59 +0000 From: "Fraga, Eric" To: Emacs Org mode mailing list Subject: detangling with babel :var header entries Thread-Topic: detangling with babel :var header entries Thread-Index: AQHaYNkqjVe3QkDnQ02KKZC9owD8eg== Date: Fri, 16 Feb 2024 13:07:59 +0000 Message-ID: <87bk8gk15d.fsf@ucl.ac.uk> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: gnus (Emacs 30.0.50) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10249:EE_|AS2PR01MB10291:EE_ x-ms-office365-filtering-correlation-id: edd5a3e6-58c6-44c4-91a0-08dc2ef04c99 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jSReriI53YcZglarnImxnDfK0d4/+hw8/jPL+Q8eWSwJ7SfDYgG7yPFaMH9Y7XmTcXVHJgkwlrY85Zof733AIcwt5SYNVdUbF+H7d1xhwBCGp3eZKr4nFTWAsKTh1wnjFfH9LtM03OfzgsOgFx6GlmophODElQSQg9psuxSncjxZHPU31vgtGN09zzsCdaHtUasrpM1gqjEasIFiZJIWU5MA2m+0IpmP4XObhMU12wGj/SY78gEezIkRFmvbbycl8ObKYMI5W0Bv8YePVDadFxehBFa47Wp3ZOpo+9nE6zJb3SrMlgF6VHjYVflSYHY2S285HNGWF0+cRYJUzMxyVNB2sWG45kL9sr76u5cfuL9dlvsHNtxR49Y8Vtabc7n9mhgB4iFyJTB3TELUDDkrV6WXYet6If2yxbmCkWK7jOzAgixpwj6ECCVsMVRlgoP8jQP6HHF0ce5sCIHDe6q8XxyGcj/QkXOhtU4gyuFQP/CPfXYDPIFwblXUZPAnnDIglcjXQk9dRhyKXmrTJeO5YjtLoJ45EH0O6w9SylA6rNQmScZt2oIHHlGUy40G5tpYNP3xqPTj3wU0Xs5Verxiec9a+9qo+sXcAn3mENOfyLqDIGqgBWpTvTaYlW7Dh+L3 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(396003)(39860400002)(376002)(366004)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(38070700009)(36756003)(26005)(2616005)(83380400001)(8936002)(8676002)(41300700001)(86362001)(76116006)(6916009)(66946007)(71200400001)(786003)(64756008)(66476007)(66556008)(6506007)(478600001)(316002)(6512007)(6486002)(66446008)(38100700002)(122000001)(5660300002)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?hWsXtOqQ9GAy1ejt3cV2Z53aorI3dWcTTDULDSwewi4yHtrcQRJaBmAxCJ?= =?iso-8859-1?Q?JEyPLmgYRsFXEg8hFO8pAfHgKJMGXwJCVVMXKINrK6EQmyCgeSgmBCgnpg?= =?iso-8859-1?Q?TRF35FIMX1pMkEenOWeIXEguQExvRUf4+Taz6ocTklzryIbPRoGQ4HU0f7?= =?iso-8859-1?Q?t94BuSIVw9cUOiEGFwMYCBIevZn4uXPUZJ4l+3qZKBe+RJb3eTxol9BueW?= =?iso-8859-1?Q?2nbh/l7Yeli/P1xeNXznJpMqVOI3TAgTBFIKIXVJui2ximndi5cPuB9Yw8?= =?iso-8859-1?Q?PJpbFhWqFqq1VWJz3n6XgUZPRx4Z/6LKLoptYmHeOEYYNJbqKrr04Yq3uN?= =?iso-8859-1?Q?t88CHVHhk2gn11HXEQb6x/57dr6DlJMPPE8XKzooLAVxH4kggJzjWQbL85?= =?iso-8859-1?Q?CjJN/I1gbFIjm+e9mhPHxslPnrTF8qobu8oRXt3ajZQLy1vIq3B1LHtVO+?= =?iso-8859-1?Q?zVyvSSEnMpsjrmG1JDfUOPhiT1ky4F9d5K3b0Oy5M5/xCIRKXRcer9aNRt?= =?iso-8859-1?Q?RIiQ5vXTIYdlBTqOj5th5Vic0I3Cfu2a5gnoS2jzuQx71oznn31OGakzcR?= =?iso-8859-1?Q?tZyLyjct8/Qa183s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pEPL?= =?iso-8859-1?Q?LlFKdiSH1+5+ZpAwRCwJLoE+0ajQTV4hICoiYKlkuNvSptlX535ZaJcvSe?= =?iso-8859-1?Q?2MDRecaclKGNWkGEnKH3VCG8fT/N88xP1LbEF5YPv1kzeqIUGSG6oDuYYC?= =?iso-8859-1?Q?xpEpXlE57salZvaw4FUwxchO5vMCjQJkNO?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: edd5a3e6-58c6-44c4-91a0-08dc2ef04c99 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2024 13:07:59.1637 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Wz8tHfv6xP1AUcsDxHeAqDXx8WhvGbGkkqmYnhZ8noKIsB7OvXwfjWEF6DBbHW/Fq80YpXqWgyFOFJIv06dEgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR01MB10291 Received-SPF: pass client-ip=2a01:111:f403:2613::700; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-VI1-obe.outbound.protection.outlook.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.97 X-Spam-Score: -11.97 X-Migadu-Queue-Id: 7A99C43CE0 X-Migadu-Scanner: mx13.migadu.com X-TUID: Z8/UB/y+dcYt Hello all, I'm looking for some advice. I do most (if not all) of my coding within org, using src blocks which are tangled to create the actual code to run. Although I usually edit the code from within the org file, using org-edit-special, I sometimes, when debugging, edit the tangled code file directly. If I do this, it's very convenient to detangle that source file to get the original src blocks updated. Very nice indeed. However, if I have, as an example, a code block like this which has a :var variable to be incorporated into the tangled code: --8<---------------cut here---------------start------------->8--- #+name: init #+begin_src julia :var version=3D(org-sbe tomlversion) lastchange =3D "[2024-02-16 12:54+0000]" function __init__() println("# My Package v$version, last change $lastchange") end #+end_src --8<---------------cut here---------------end--------------->8--- this gets tangled to something like this: --8<---------------cut here---------------start------------->8--- # [[file:../code.org::init][init]] version =3D "0.2024.211" lastchange =3D "[2024-02-16 12:54+0000]" function __init__() println("# My Package v$version, last change $lastchange") end # init ends here --8<---------------cut here---------------end--------------->8--- When I detangle, the original src block now has that version line in the src block. So next time I tangle, I get another version line added, ad infinitum if I keep on tangling and detangling. Can anybody suggest a workaround that allows me to incorporate a :var data field in a src block but still allow to tangling/detangling to work as it should? I cannot think of any way and can obviously live with it (I just have to remember to delete the spurious version lines periodically...). If there is no way, a feature request might be to have some way to indicate blocks that should not be detangled? Alternatively, a hash of some sort on the tangled file blocks that allow detangling to easily identify those blocks that have changed and need updating in the original src block? The latter might (? maybe not) make detangling a lot faster as well... but both options are beyond my elisp-foo so cannot implement these myself unfortunately. Thank you, eric --=20 : Eric S Fraga, with org release_9.6.13-1003-g872c1b in Emacs 30.0.50=