From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 CGBtJY5nW2StzAAASxT56A (envelope-from ) for ; Wed, 10 May 2023 11:44:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kCt5JY5nW2RKFQAA9RJhRA (envelope-from ) for ; Wed, 10 May 2023 11:44:46 +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 558DAC03F for ; Wed, 10 May 2023 11:44:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwgML-00019P-13; Wed, 10 May 2023 05:43:45 -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 1pwgMJ-00018L-3o for emacs-orgmode@gnu.org; Wed, 10 May 2023 05:43:43 -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 1pwgMG-0006Z4-Rm for emacs-orgmode@gnu.org; Wed, 10 May 2023 05:43:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 86BB22401A0 for ; Wed, 10 May 2023 11:43:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683711817; bh=gKdsKvD5fNR2yQdbBEISt3tLXyRvhWuxDsEcPxSzJ0U=; h=From:To:Cc:Subject:Date:From; b=AbDs39Ljw6VXVpzkm9pR03vvDVrtqaH76oNPDc7FVe588lsOQMb/r7VP9FLqOn7sc 8C44zzeAQEFxccRdQ9mbv4kh+zp/x2ljakbZyxN7Aun2/mOLN6UhT0YKVWHdAyHoia O8Nr/rwGoDAaffOegowKNBdvW8hHNQB8P7M5Jfsh8UF2J2PLY6b71Ta9/yrGgrhIkI ZA/ziUhIvhfDsioR3hpYQcUGo+qvkB8Lt/afl9k84x1cAXroDMe5nxabjFoHg4U9X+ ZwGUcmdudhjzD8UVwhMbUdUHPlhCtmPiCRUtX/Th/q7COPJMxZ2P3fwzkkAmxBSm3P /uGs6+zQmxLAQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QGVTP1Rsbz6tvc; Wed, 10 May 2023 11:43:37 +0200 (CEST) From: Ihor Radchenko To: Mehmet Tekman Cc: emacs-orgmode@gnu.org Subject: Re: [ANN] lisp/ob-tangle-sync.el In-Reply-To: <8735451u20.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> Date: Wed, 10 May 2023 09:46:51 +0000 Message-ID: <874jokbjsk.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683711885; a=rsa-sha256; cv=none; b=cIt6wxoIbXc9xGaucKS2hDocqZvFKa9SQSz1BMr2WUwhv8RvGjB9Ea6jeViCrxjwaTrj06 u2K6SlwxAATzZiAaYKr1qr+gFrTQubhjUccyPZUG0gV7z/fzmPj6+CUSjB7VpN352CSoQT 2Hni73dJwFxwa22pshA59PenFeKWeTIz7D66uyiPXgYjFjUXNSuorDIy9PB0sKcmk1pf/+ 6jeXCZW3Ra628hWiO8KyQ+lg1hpQjvmfnI/u7Wo+DnX1eKjAwd05L0qMBWt5wmHP3Y5Awq Ox9xReOzaQxVbN0tzSq5OWa/TjeMr37cEtjYSngNJ7pqj6pxnFKqvMVm+NtUQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AbDs39Lj; 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=1683711885; 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=lrXL8XyG9vciI4EP7r9vuq5q/KgRh7UFvzfGpUY5gCw=; b=ZFnCJInGYJlQ6BmGJwXlVyTl02FectmYs03lI+7+mny+OAuwyzrVoeipN9MhRyZTJKgTXy o+FbFr6TNHinaGQPAGd6L+zwRG+9mij58pj1YJZGSkQN2RTeefLlqQiUVXYp7ijdUt9pRz uU8btt6V4N78HC5KaZ2bBF+fllZQm1/eVG2a1F6qElkSzQxwK3kguTLBzi8jkiubqSHX5F 8KMz2cU5hct64oLMNUWcn+uCYY8fDTTgQ1G6vKGP7JIhnJ5+OdSxFU6Q7rwNqpYFZ41UGx lEitHXbySexkgiUR8ozojcASlOJu1I6mMwWlTc/uxAa2IJT6W/9vkEFV4amlFg== X-Migadu-Spam-Score: -9.68 X-Spam-Score: -9.68 X-Migadu-Queue-Id: 558DAC03F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AbDs39Lj; 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-TUID: V0dt7blmCt+u Mehmet Tekman writes: > I'm having some problems getting: > > `:tangle > [import/export/both/skip]' > > to work nicely with the existing framework. The main issue lies in the > `:any` keyword in `org-babel-common-header-args-w-values' for the tangle > entry making it difficult to determine where one exclusionary group > begins and where the other ends. > > e.g. > > (defconst org-babel-common-header-args-w-values > ... > (tangle . ((tangle yes no :any) > (import export skip sync))) > ... > ) And the reason is that tangle function inside `org-babel-merge-params' does not know how to handle :any in exclusive groups. We should modify it. For example like the following: 1. We will assume that :any can only occur one time in the exclusive groups. (Otherwise, there is no single definite way to parse header arguments) 2. Merge function will treat :any specially - when parameter does not match any of the argument values from all the groups combined, it is considered as :any and replace the previous corresponding values in its exclusive group, if any; In other words, we will need a special match for :any - "anything not equal to other values in all the groups combined". -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at