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 ms9.migadu.com with LMTPS id 0OYSHVLRY2QUzwAASxT56A (envelope-from ) for ; Tue, 16 May 2023 20:54:10 +0200 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 YKseHFLRY2RhKwEAG6o9tA (envelope-from ) for ; Tue, 16 May 2023 20:54:10 +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 1BA5B3F161 for ; Tue, 16 May 2023 20:54:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyzny-0006e7-V3; Tue, 16 May 2023 14:53:50 -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 1pyznx-0006dv-54 for emacs-orgmode@gnu.org; Tue, 16 May 2023 14:53:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyznv-0007Xx-DO for emacs-orgmode@gnu.org; Tue, 16 May 2023 14:53:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B056E240112 for ; Tue, 16 May 2023 20:53:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684263225; bh=GNM87igjJBj2+mHg5fKT+oCmOqAga34TZNNU4LdhybM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=j0aF9IF3XDnZZ2ejkXo60o74iIMYyk+S7kavAII3r0iKv6tNiVQpflKjBMIIsr/A5 lJSZOHJNrvXQsKqB136ysmhxMQJGXAexbLn/Qq2cA3m0gnvaOJy0DXFQpoHc6A1TL2 pFcNlbQTA/31AiPcXluMeB5nsJow/jTHlFdGxOtuvJgEmB1AxqldueHTrqS3stOZh5 qSe+Jh7xCPxsiPOrYI1NY123dvNtaAa+/iO49sTWRGJ3Pm5V3ltZ5hmHQ+a0OWuWcX hPNymmM0R0B4zotcIZ7Y2nK5h0ytKCf50yXM7Z3q5hF2Azy6FkuXnP3e7k6SD6+9CS iHKen7o87QIzw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QLQPP1k63z9rxY; Tue, 16 May 2023 20:53:45 +0200 (CEST) From: Ihor Radchenko To: Mehmet Tekman Cc: emacs-orgmode@gnu.org Subject: Re: [ANN] lisp/ob-tangle-sync.el In-Reply-To: <87r0rg1lwe.fsf@gmail.com> References: <87r0rxabd4.fsf@localhost> <87sfcd78vw.fsf@gmail.com> <87r0rxv3t5.fsf@localhost> <87lei577g4.fsf@gmail.com> <87lei5v1fg.fsf@localhost> <87fs8duyae.fsf@localhost> <8735451u20.fsf@gmail.com> <874jokbjsk.fsf@localhost> <87zg6ch2dm.fsf@gmail.com> <87sfc4a0ce.fsf@localhost> <87r0ro9mzc.fsf@gmail.com> <87zg69zq49.fsf@localhost> <87r0rg1lwe.fsf@gmail.com> Date: Tue, 16 May 2023 18:57:12 +0000 Message-ID: <87leho3y0n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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=1684263250; a=rsa-sha256; cv=none; b=iQkJMPXOu19vvAeHGkzB7SV9u0Qpzs5nvCta/mLaVbj3wvJPDGbkv0u+oM97nxRLfhLxmG 1VeUsmJPPjQg/12i2sAhg7grdh6pyWtnST+pPG/F9a4zVqTTXeK+SWqN+3t83advLQbwHo dDiOhiCR9KZTn9JipVcpZWPLVCdtjYe8qZ1voPE3TwRC/SkWXjaHPIckWBFKqUhD05YB3h wojyZ+EFgK274XZYS9KD+DkR80QyPogB3EJDjSxN7iXlK+03M+A7dG+8fgwktQ2dncdFc+ nxhMGPDOOR7O5YnzXu1ArMCD83KHqvckIs1B07aIMgH3+tOWiQE9n1H+3Fm7AA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j0aF9IF3; dmarc=pass (policy=none) header.from=posteo.net; 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=1684263250; 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=OgCayhLhVw/QGU3BaAvguCTT0g5p2DZXS1b9jQIHXY4=; b=htV5upRD1Qiv7SlzrrmvDzYikr0MCtfb2Dd1reLYPIhMGLtInCshGd6IFhTd5/aZ/chfKR pq3TWbc6zdufeQ1TIN5lyWh/st2kSVPSzLinf+1tU8jBJ+zsv1o058KNyZrGD685njo3eK Nktjkf0M9IljzWeNYNYAEaXhRYPT4snMQyAa2uQH023h6Sfd52qz47PWybL7l0DCEIC5iL USSz+dIvP3eDz200zWuJdI9y9xzkmR345AhVvNuEbKeclKBjQWOrc/jWd6Gww5sSYYaizj Xi6WS72rruVrNGEciMekhtU1HPlXmiCYqPC8341U7KBmbeu8pYkCKgsRoALl8A== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j0aF9IF3; dmarc=pass (policy=none) header.from=posteo.net; 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.17 X-Spam-Score: -6.17 X-Migadu-Queue-Id: 1BA5B3F161 X-TUID: k+D4MCtu98Oh Mehmet Tekman writes: >> I feel confused when reading the modified code. >> > > Okay, I guess comments are not my strong suit. I will try to remove any > unnecessary comments and use better variable names. No, comments were useful. They revealed that our understanding of the expected behaviour might differ. >> I recommend trying various edge cases with your patch. >> In particular: >> >> 1. Testing exclusive group inheritance when we inherit a header arg >> value that matches :any: >> >> #+PROPERTIES: header-args :tangle "foo.txt" >> #+begin_src ... :tangle no >> >> #+PROPERTIES: header-args :tangle no >> #+begin_src ... :tangle "foo.txt" >> >> #+PROPERTIES: header-args :tangle no >> * Heading >> >> :PROPERTIES: >> :header-args: :tangle "foo.txt" >> :END: >> #+begin_src ... :tangle yes > ... >> I feel that the following code is not reliable when we inherit exact and >> :any exclusive group members in alternations. > > Ah, hmm - can you give me an example here? I thought the idea was that > an :any string would only be invokable once for a given header > parameter. See the above 3 examples: (1) "foo.txt" shadowed by "no"; (2) "no" shadowed by "foo.txt"; (3) "no" shadowed by "foo.txt" then shadowed by "yes". You can also consider "foo.txt" shadowed by "bar.txt" and other variations. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at