From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id AAqAGzcpLWY+swAAe85BDQ:P1 (envelope-from ) for ; Sat, 27 Apr 2024 18:35:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AAqAGzcpLWY+swAAe85BDQ (envelope-from ) for ; Sat, 27 Apr 2024 18:35:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b=gKx1GyJw; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="C TcaHrM"; 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=adamkovic.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714235703; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DLBlEWoW4QXNMZvI79xsbmZxHFagRw8qU3OWxvAnnMc=; b=u+03VhT8v69aAP6ejw9xJ+EQn3uF6AAdoUoiMRQCSJxu5Tv7vYSmiaMhbo5k9/DpTADGhA 6JALKDEkBH0TaNAN3n6WxotU218Ea1brXTBmvrdoQkf1Ejh7UgQJbY+fKIg+DSwlvCPcor /ipvx5RK90aXjW30KRld/qtf56n9qfyhkr9A7GazEztwRRgYSIuJwMe6+UCbCXRbVh2ijx L0Ugo5sMRo2sMttUs/NNngLIouWeWMnytoE+/Q8VAXZ/MF0IjGkWvn7twytYztKE87jnNs PIOKqSjgA9sGNOCeEHtH/JitwsdEU6+QCuEoTk0nAM+ggvHiXt8JVhI2DlxkEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b=gKx1GyJw; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="C TcaHrM"; 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=adamkovic.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714235703; a=rsa-sha256; cv=none; b=rAqma/4nWwtDmv3UE33Oi1PE8KKNrg8gypWJcxHbaGd9SG3aCIbtTxQuzOZqsNKj7UEz2i k0U2+DLL0nKyzdpICNCUriyxwbIMa08hhii+opDH4iKZ/yfe9+1hAgMPzxdpDq/3fJ2+J0 5r1sCWMbGSi7PDpfA+TvVyyhdYtW41ccpB1jU2Sa+pfg9IoK2x3mM3rmXpK9g901LyUfVQ psT4acxSUw9IeffFw5VQzdtSTgJt3yJWqvyHSXjnP4VeNDzhKEjnBhghwBKgcVzvUkqjNZ aSNjNgVXxWGBuK3NdZO3JbQSK5u5ocmgTzs1PPKbHAIkhReKXIzjCA5rEnMyug== 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 A999163F52 for ; Sat, 27 Apr 2024 18:35:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0l08-0002gK-Bi; Sat, 27 Apr 2024 12:34:14 -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 1s0l03-0002fy-97 for emacs-orgmode@gnu.org; Sat, 27 Apr 2024 12:34:07 -0400 Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0l01-0002ry-CJ for emacs-orgmode@gnu.org; Sat, 27 Apr 2024 12:34:07 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id 4E3D71C000F1; Sat, 27 Apr 2024 12:34:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 27 Apr 2024 12:34:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1714235641; x=1714322041; bh=DLBlEWoW4QXNMZvI79xsbmZxHFagRw8q U3OWxvAnnMc=; b=gKx1GyJwU0ccIgvW2ujKSueX7y1tRP8QJBsnidyE24Uf10x0 MV3gaW4q/J5QFednyjAGHFKEZQbRH0vR8k19bJ13Jtv6PA4lR710ym5UhDxgQHWz zb6qetI5VjP0eZazp7/vVPAtF+3Iim2QNLXHhGpD/iFNe50BikJ7Hj9jwMEUbkOz TdFkUCqVfQTfsOTvzdVG6DNo2X7rmiCBozlQnhxG9pVgoYMACPfmbvYkh4lW1r3m /YQXNgZWZq9/4gCeBT7ix6pjPka/FdVbC58RFXhaA0PYBWaK44pTt6AHSLCraVFT +ZcIl9+YQoYNYwtK0jctEUT0Svs6HNAYM2nQpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714235641; x= 1714322041; bh=DLBlEWoW4QXNMZvI79xsbmZxHFagRw8qU3OWxvAnnMc=; b=C TcaHrMvlYiwHyEZubD3qgYSdrORdrwfJ/zFUaGbfMdDVsDL+ueKBb6GOcqTCNe+2 KeCLLoJfO2AI7FAraeaDEGhR1xmHNDk/udKnUCpyasocCt0dEFsmu6Ifwb/OhldR Yd6WK6ti3Pvyzba3TnBGG7anwMF58cMpdObfm2YkjfoaC5cLYAj3bucdVrYlUgyt LwOwqwrOO35xIon4dxLllI4VueUKQCzJa8xYBfwVHOlzR60iMTyRQ/yNVH/is9uV xI63BjRTylS4yixP7yEI8nFfST9InEUXvWGCryfTcj9TNMYpI33C1nvfICbuteOr FP8NJ8CnIsznwTJmJ85cw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtuddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefujghffffkgggtgfesth hqredttddtjeenucfhrhhomheptfhuugholhhfucetuggrmhhkohhvihgtuceorhhuugho lhhfsegruggrmhhkohhvihgtrdhorhhgqeenucggtffrrghtthgvrhhnpeekgefftddtud evvddtuedvueeguefgfeefvdfhhfevkeejtefftdefieegteetgfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhguohhlfhesrggurghmkh hovhhitgdrohhrgh X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 27 Apr 2024 12:34:00 -0400 (EDT) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-lua: Support all types and multiple values in results In-Reply-To: <87pluctf6m.fsf@localhost> References: <20240423164458.33702-1-rudolf@adamkovic.org> <8734raewr6.fsf@localhost> <87pluctf6m.fsf@localhost> Date: Sat, 27 Apr 2024 18:33:56 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.144; envelope-from=rudolf@adamkovic.org; helo=wfout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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-Spam-Score: -10.54 X-Spam-Score: -10.54 X-Migadu-Queue-Id: A999163F52 X-Migadu-Scanner: mx13.migadu.com X-TUID: jUaS7hUpC5ia Ihor Radchenko writes: > Maybe something like the attached. Nice: src_elisp{"foo"} {{{results(=3Dfoo=3D)}}} src_python{return "foo"} {{{results(=3Dfoo=3D)}}} src_lua{return "foo"} {{{results(=3Dfoo=3D)}}} That said, I have just noticed: # expected: a, b, c src_lua{return "a", "b", "c"} {{{results(=3D"a" "b" "c"=3D)}}} # expected: 1, 2 src_lua{return 1, 2} {{{results(=3D1\, 2=3D)}}} Oops! We need *better tests*, otherwise all this is kind of useless. I will hack on this some more... Rudy --=20 "Thinking is a momentary dismissal of irrelevancies." --- Richard Buckminster Fuller, 1969 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25, 84103 Bratislava, Slovakia, European Union