From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oKLvHdtiz2R5SQEASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 11:07:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WErWHdtiz2RtNgAAauVa8A (envelope-from ) for ; Sun, 06 Aug 2023 11:07: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 BAA275574E for ; Sun, 6 Aug 2023 11:07:38 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NXwWvCAk; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691312859; 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=nraP9DJDzHqNrFrlhML9ll6r6o7yE4cn/kkRzdta9/Q=; b=otaY1PbRTNbmbpA2XufJc/90PsVDvX2bGCbCAtIXCMDFVqD3tnhtYsWwOXhX25oHNRA4WG C3qMOjJ2IpTuKG7Rav3Kylim14+WHyjD0vAzXxFKZMRdQJ9nNnviejQUtgubIhWjSAqVTE /5+lZxEC7YxZJDiy1VuuJdkHyRYvO2E0nxCr7PRUjjVpASyi2LX3dnABTx0X/FlQcfimvm L8eGCeynLqgvlQ9wueduw2RD/x/KY5dqzdG9iJVXcJCxdgZ1sV8t9yAQk+pNgdnQwajS3h 6CLpS3bWtOACaMdAJE10KME0FwfBPPalhkCXfIRxavSm1aWIdrYAB3qJ/hMy4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691312859; a=rsa-sha256; cv=none; b=gS0vbAn6U8mMpJX44H2gRCCynUyzSu5hWG6P1SE7vUqAdCtv3wbowfo1kg0PlqBAG7g06P qdyr03+0JIfz03cubNWi4IRt0a68xE1BNafHSjyGGvR+bS7gYMAgsLgsRMPi1idZiqlhvp CcQNqdC+cftjty5YQEuUnKaHZRgCzVjikQGOg/H8js8pUwZY06sVYikjRBI6WGFRFnIejJ qmp2ktxpP+uJ+vqPQZQ2Pq/eB4rgtQponA1U0KNR/tdH5s7ZDTboYdBIzTgWe79mhuhmsJ jbufOPi6kBnWo8lzzQFE6Fg2B9a6Lrbdi7xyli9m8r3kpoXtt7+pW3RTMiT9Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NXwWvCAk; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSZit-0001ih-Og; Sun, 06 Aug 2023 05:06:51 -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 1qSZis-0001iV-GM for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 05:06:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSZiq-000654-6a for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 05:06:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 094EB24002A for ; Sun, 6 Aug 2023 11:06:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691312806; bh=2H0WT6Mqgdwf1bzLK3rUdjhuaxBWod5bzIcjQKBJbTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=NXwWvCAk8tyYmX3bVuf5QMTkVbXCik2FY/56DiXyZKp6dddf+d2vvTNDngdC7Jkzr Fu1JzI9hiBGlrBbKW9PEzD0fnh1Rgw+gOe2xKi02IrwMaRIF1cjsaLuQAhLJsO3T6u 5opUZHwlWjl3Ir408AWCszaKMLgbTSxTw5oD32EfMIuwBBiiNbY/LNsvTOA2rfsRUs soBCnKj7tkYnSBvQY9+KJRp0JtE5iMBpfEflxZ+8M07rINLc43rw9UkF67Z+KGGAuf /0m2ddqgZQWTmg1NA9oeL6I2jGdRKAG0IFuYvS4oQfbkFvG7RszU9/A2lOWWv8M2yc +8OE+CQh3AoLA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RJYVC20XJz9rxL; Sun, 6 Aug 2023 11:06:43 +0200 (CEST) From: Ihor Radchenko To: Mehmet Tekman Cc: emacs-orgmode@gnu.org Subject: Re: [ANN] lisp/ob-tangle-sync.el In-Reply-To: References: <875y6hwqqe.fsf@localhost> <87o7k48jcf.fsf@localhost> <87v8e8m0ao.fsf@localhost> <87tttkghou.fsf@localhost> <87wmyc1sud.fsf@localhost> <87r0ok1qx4.fsf@localhost> <87o7jo1q2s.fsf@localhost> <87pm43kz3i.fsf@localhost> Date: Sun, 06 Aug 2023 09:07:08 +0000 Message-ID: <87bkfkiloj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Queue-Id: BAA275574E X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.67 X-Spam-Score: -6.67 X-TUID: 6SJCnpDIOzgg Mehmet Tekman writes: > Anyway, I finally did it - I got it to work. Every single patch now > pasts tests. Consider the following edge case: #+PROPERTY: header-args :tangle "file name with spaces and no word.txt" #+begin_src emacs-lisp :tangle sync #+end_src With your patch, I got :tangle "file name with spaces and no word.txt sync". Also, there is actually a big problem across Org where :tangle parameter is often checked using expressions like (cdr (assq :tangle (nth 2 info))) No splitting is done, and the assumption is made that the value cannot be compound. It looks like we are opening a Pandora box with this feature. And rather than fixing all the places that use :tangle across Org, we may need to create a new API to retrieve header argument values uniformly, without knowing the details about how to split PARAMS string. We may have to use the approach employed for :results header argument where in addition to (:results . "string value"), we have (:result-params "sub-value" "sub-value" ...). :result-params is now handled by `org-babel-process-params'. We may need to extend this function to work with all the possible header arguments that have multiple exclusive groups and do not have a single allowed value. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at