From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8CykDGOuS2RgvgAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 13:30:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CKGQDGOuS2RCOwEAauVa8A (envelope-from ) for ; Fri, 28 Apr 2023 13:30:43 +0200 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 CB85715A95 for ; Fri, 28 Apr 2023 13:30:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psMIR-0001TF-St; Fri, 28 Apr 2023 07:29:52 -0400 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 1psMHj-0001HC-16 for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 07:29:11 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psMHf-0003JX-Km for emacs-orgmode@gnu.org; Fri, 28 Apr 2023 07:29:06 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4ec816c9d03so10859208e87.2 for ; Fri, 28 Apr 2023 04:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682681331; x=1685273331; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=4khkwafbhHXE8dMTno1hK2BJ35Q63/IXGnpyzXJfVUE=; b=MQuFsnbMwCoVGFDFMI3mnCZ8GMjjbsh4pF5stThv2aJNumR+JMvSPeyHgIMEyYOjbN frkDZfiJdLJf2KVN4OF8GdzIZgatu7Is8ZQjb/XsphSoujeU6r+Xhj4gX7Toam/9N3Qu 7xncgeGDsRKqk4Cl6p8ilcFPN9CftYK5tjSnB+5wsiP5boo9eWRYtXLfSUrceAdeRRpF Ytih2VvKp3L1cur40UEvPLfsEnwW89LHQD+zDMSb9RbpOWerYdGhnuFHrdZr/J6Z5/pm vx/pUaK6m8KjOpXr6vfJ1z6Em118b/rk1dBWb/9/dKrbli1H9sqeyfnKvfjjerGuHWIL je3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682681331; x=1685273331; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4khkwafbhHXE8dMTno1hK2BJ35Q63/IXGnpyzXJfVUE=; b=bKFVxe1W+wc0pqL19jLcXo3mZoCifUM30z3r3uC65Nyzn1YNRKN6ZY40ThV9r7p4TC 8DrMm7xY00OgGLuBPwLwAOG25z5BIISrRkldcfky79XmgCQMCakNjuafFVLUv9I4Ag5s mUGlVX+rfbUe4BRYl28ExMyv8MH5yrZPGz4QR2LLYqCl5v/Ico95CD1O/qkcQI9A4eLp ju6hkkIbofIfSB6SnsV8WpjuY5cRh8ffKMInqAgHvnIEK4XMmRKRYeF7xDQmOLPb+YWP 9Ay9yN5PVLcNbVWttJL/OTxWmeFeh6Wv5pzwVX5goRT7G9iBBIV2WewNsEcwtHwBbqp3 mPkQ== X-Gm-Message-State: AC+VfDwoat7LyAXCH0xNwEarkOu87+QNDetQFoaGgiX2WR2j4T17cTet 9F3Bj6ECh6onA1vrtoItVpPBN3oP9k111TZIWOqFIpQStQo= X-Google-Smtp-Source: ACHHUZ46n31CBBDAOXU70Sd4ISxnDOtWkLxg21kDRfpzjvOcSXO7cFK2NKGqFtt1vy7BE36pVIz447hxYlxtXTEhQuY= X-Received: by 2002:a05:651c:10d1:b0:2a8:a5b8:184a with SMTP id l17-20020a05651c10d100b002a8a5b8184amr1423031ljn.40.1682681330749; Fri, 28 Apr 2023 04:28:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mehmet Tekman Date: Fri, 28 Apr 2023 13:28:14 +0200 Message-ID: Subject: Re: [ANN] lisp/ob-tangle-sync.el To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=mtekman89@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682681442; a=rsa-sha256; cv=none; b=GVXnMZjyHZ35C8bOkc0tYbqWq/PXuMsMVZi+SK/Zw+U3rPkgBlcacaTiZ7yTdyb0RxOSRU nDZMSYpO0sOj1gFI8EDR+AM8Ud91SrZY3D1yauzP7VXQr5Q/MSXFh5NHDCTnO6iiS9J4Ot /WW6HzILQDLzSlH85qwer1FPA2kIghSR6Nepr5l2O2w79LukRLkjfEmSH/+wNrOl48Ce8a c1B1B43lV2A1755jL8MAm1QiCoSDUbAIubsU5VZtIRbaBV6z0K9NyVi8O7uSm6Fkz0kybm FCocuEdAE/ww4MxyPygPep6LYWxxMbt53KNny6kXBvfzjzclNiO5zIjrUmgAyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MQuFsnbM; dmarc=pass (policy=none) header.from=gmail.com; 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682681442; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4khkwafbhHXE8dMTno1hK2BJ35Q63/IXGnpyzXJfVUE=; b=o6UppSbNlRxfZzr5iK1S3qbvsPb4r52RgYYNCY36ViR9ib6hDSL2Wv7iu3Othm7ujgEbLN pe3BUB5IRViz6JqYXHa9wL4xFd1PbM59M0pKepbi0IeoGxF+x39BTikG3T14ybH4O+qxlO IKs+LOugeVjmdRM4mTie19p01Kcl7cD00hzSGT8clbj5txtZZwLlrBSpSA579ywZlBHwj8 /dRt1t58D2BlBfcXN7dZ367wI1WFicAeib5+ZNUacN+SjKpXjTwQDIUq1eCQQj+PdMeAOu MfDEQG9hMlu2K6wLujBA8DXMpAyMIyqtV6IwHt0JfbwTYbEUlydmewFO8Vjzqw== X-Migadu-Spam-Score: -6.82 X-Spam-Score: -6.82 X-Migadu-Queue-Id: CB85715A95 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MQuFsnbM; dmarc=pass (policy=none) header.from=gmail.com; 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-TUID: 7W6+NpaQBHrX Ruijie Yu writes: > Thanks. Can you make a full patch from the current main branch to your > changes, with a commit message and so on? This would help reviewers to > look at the full picture of what are modified. Take a look at the > manpage git-format-patch(1) if you aren't sure how to do it. I'm at the moment patching the =org-babel-tangle= function, to act appropriately to the =:tangle-sync = requests. It's harder than I thought, because the way the function currently works is to populate a temporary buffer with source block contents and then to overwrite the destination tangle file, i.e. it is unaware of the tangled files contents during processing. This is efficient, but works anathema to syncing changes in the opposite direction, i.e. when a block requests =:tangle-sync import=. I'm currently doing a small rewrite of the function that populates a list of comments in the tangled file (restricted to stemming from the source org file), and then either populates this temporary buffer with the org mode source block contents or with the already tangled contents (when "import" is given for that block). I will submit a full patch with these changes (with properly detailed commit messages) from the main branch in the next few days.