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 UDdqDn94UmQl/wAASxT56A (envelope-from ) for ; Wed, 03 May 2023 17:06:39 +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 SCsLDn94UmRTVgAAauVa8A (envelope-from ) for ; Wed, 03 May 2023 17:06:39 +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 D57C62C5AB for ; Wed, 3 May 2023 17:06:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puE38-0005Og-Nv; Wed, 03 May 2023 11:05:46 -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 1puE36-0005O9-T4 for emacs-orgmode@gnu.org; Wed, 03 May 2023 11:05:45 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puE35-0000vl-8d for emacs-orgmode@gnu.org; Wed, 03 May 2023 11:05:44 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f19afc4fbfso53127405e9.2 for ; Wed, 03 May 2023 08:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683126341; x=1685718341; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xVYl9fnKjo7jCPpBLGyTdTA2163YFu+P/G2iVvXXdZQ=; b=TeTLxGjnjZ6su7GvNAqXNq9fXhVy6GBcyv1il8QY46572dQ7Tc7HtvcDFFQnNz2aYA djqYwgDaPvFlwPYZeDX2EXR7B5ZlobHSgDYxYhlOZBd35oLDc00oRNf4QBCK7Oa7/pEw eKjgQxVa/Ln7EX12I9k1lS2OCeZoYEC7eOXjt8zXyIXRt5f102h7sZXSL6B8AZw1XjAo 1lnxCdags/uSCMb4R3F+HR8b2YkegUtlqK44iJoCu8NPqYmlFvrhtOZdaEQvIo/qwsGL nfxTotX6YpuHXVUmCI3MNCzriM+7MLCfNVVSjmKn370EP9ddPLbnmcIxHdxpuHIDAyz7 ZXUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683126341; x=1685718341; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xVYl9fnKjo7jCPpBLGyTdTA2163YFu+P/G2iVvXXdZQ=; b=a4OMBivr5BiQvYr6FUNdR0XkHLyFQv/ZjjOUSBR1sHIGQfubz50otha+HQcpKxmXkB XS+5j4TKNDs++G6uVJi7bd25McswE8b7rZbAYw9ZYpDUaZv0qpjTC0CBsYDwJIjyir8q Vu/euSYYWRALXgGvTz4GhMFo533UE0jvSQpszZZlhpTP65lgxn0mQ480Cau3MlXsC3sn GFbl9otczXs3Lb/I7znyljT6kMncAJgg6ZrFRDDMeSp0HJXraD8Y92iMLr9dUXXfCPT1 7zy7iyhs7LaaRmtdgtD9oXmTDKIlo4YB1UlQKYrnvlnrTVk1Q/g6sHqyVn9ZnQxmiV5q Q8Wg== X-Gm-Message-State: AC+VfDyJ43ZM2mowZoUPkYRSv/ZnzmORswYXEt8FYBdkkz6o7h2BPbSA /PEnoVoCVuH5pC7k32VZhdL+Da9Tf2Y= X-Google-Smtp-Source: ACHHUZ65CkyfzmAryxsCrnsbhGAY9K81JJQK79JSy7K4ob2az77HpwG0W7ibDRR/YOvjkm3U129heg== X-Received: by 2002:a1c:6a05:0:b0:3f1:95af:172c with SMTP id f5-20020a1c6a05000000b003f195af172cmr14380917wmc.41.1683126341053; Wed, 03 May 2023 08:05:41 -0700 (PDT) Received: from hayvan (pharma2-70.w2k.pharmakol.uni-freiburg.de. [132.230.165.170]) by smtp.gmail.com with ESMTPSA id q3-20020a1cf303000000b003f3157988f8sm2139191wmq.26.2023.05.03.08.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 08:05:40 -0700 (PDT) From: Mehmet Tekman To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [ANN] lisp/ob-tangle-sync.el In-Reply-To: <87r0rxabd4.fsf@localhost> (Ihor Radchenko's message of "Wed, 03 May 2023 11:43:51 +0000") References: <87r0rxabd4.fsf@localhost> Date: Wed, 03 May 2023 17:05:39 +0200 Message-ID: <87sfcd78vw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=mtekman89@gmail.com; helo=mail-wm1-x329.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683126399; a=rsa-sha256; cv=none; b=VtrI/cWwmw+V3NGZ276kGvnPfSzrm9ECLkQDM2eOBL7ec+Ew40r+wFEAC72gb5kqgA5xBz X9PiQ82e744f15uBLC1m4YtAtO2Mwg9by/49WiBn/GhKLQwaKdjNaucoAfgC6sy0GU1roZ PRdBf0W1kX37JdphJKuOlfP06AYp30Q0VUg1sZgE2rmvplsrpKYkyJZDIrYBzzM2XKrLr6 iAs5YZGpZyu4ayzh49nSAHpHConQalHCcEhhtB99nHCmzLJLJAi9pXrIWlKGooFBfRn7bU CSOOefB7yZD/6WMaTOeoTCcyFFAlaUB1VBl2Dmk6kd9CqESJusGd1AwutxAMaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=TeTLxGjn; 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=1683126399; 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=xVYl9fnKjo7jCPpBLGyTdTA2163YFu+P/G2iVvXXdZQ=; b=H3XPw/Gr78YcKdvm29QBuGEHt+3Vq4DTYpnfgRhbl3hHNfjOpqpWovL186fByS6d4X6/kX UfgJolbSYYdZVdK4lVGC8BgNeg5LMezI9TGD3pFqXf/leh4lBTZPq+p4CteuJ5bJl7O1T6 PnFdFl2ZDz6IPE8H2N/aP0NFQXYUWDARVsQcl+PcFZzwjmNlTf4BxVrsLqaC5u3Chh9cVX FMcpdj9d8jl1Xb8rBR4ZKesaOeaIAd2wEpnHWLF9kuwpUsX0Nok/O1dKmh2lTK+j1/sxwf 6pCJRnB9oawqwdnZh/B2/wjQdwP1qh9aJimKQW0P+7zSoKBRDucUwMPXwcjZGg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=TeTLxGjn; 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-Migadu-Spam-Score: -6.41 X-Spam-Score: -6.41 X-Migadu-Queue-Id: D57C62C5AB X-TUID: 9tg3bKH2ZdMs >> Ihor Radchenko writes: >> >> May it be better to make :tangle header argument compound? >> Like ":tangle "file" export". Similar to :results header argument. See >> "16.6 Results of Evaluation" section of Org manual. >> > > Mehmet Tekman writes: > > That's a great idea I had not considered, and would definitely reduce > the header bloat, especially since `:tangle-sync' *requires* the >`:tangle' header to be there. On closer inspection it might actually be unpractical to have the sync action within the `:tangle' syntax, the main reason being that people might define the tangle target in the document header for ease of use. e.g. #+begin_example #+TITLE: Sync Many Blocks #+PROPERTY: header-args :tangle /tmp/default_tangle.txt :comments yes ** File Contents *** Free Head #+begin_src conf This is some text that can be synced both ways by default #+end_src *** Import #+begin_src conf :tangle-sync import This is text that can only be imported from the remote, but it still refers to the default tangle argument #+end_src #+end_example If we instead encode the sync action in the `:tangle' syntax then users will have to explicitly type out the tangle file in each block. Also, tangle-sync wouldn't be the only extra tangle-related property in a block, since tangle-mode is also a thing. Is it okay to leave `:tangle-sync' as it is?