From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 SDJkOvceKWYOSwEA62LTzQ:P1 (envelope-from ) for ; Wed, 24 Apr 2024 17:02:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SDJkOvceKWYOSwEA62LTzQ (envelope-from ) for ; Wed, 24 Apr 2024 17:02:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b=nl4c9v1G; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="P +GqCCI"; 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=1713970935; 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=qK7fRfWSXD62j5xWtKiaMzplLvabZwhUIapbw1xSCx4=; b=Pu3CG5qyp7IrpykX/UZHy2CpGVjUv4cs19GiNMFyGgvbgBvWzLEd2ccXGzE+HOfxUbXXPU vDGBbn7nHkyBpUAczDbFrKcqYNyiakdQK5w9mWzZNc200AKBpjGfeqm0mxbWrb25zQZt03 OfUiVoJKcub0WTGGWLWPkSApvrmkp3QYwnW/0XTPRuQm5pUzq6paLOVtA3kD0upVCYGUTM 9hStmT3xsMhJRLFM4+RgR5MB2AcNO9n0p8P26w1ae30s/twFfjmNjm+JNCkVz4SDZNIBX0 Dbfkrpf7xCR3tseoUQYtt9EeZFOsHsMf8LLJPersK6bdZp5WK+DmWK0+NIFqJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713970935; a=rsa-sha256; cv=none; b=lZQ3XzhDWMk/W2O+74MQ0LBknHO9hV6ngqTWv2obpmc25y2ZOuCiyIGZz4dGojbafQNuwX L6bjA0E5xkUk6/TZksmCy+a0kplBal16ysKNLps3J5rZoCp3glQfYy5ynxf8/7+7pL4Y5F RjXG+BxeCJMcwLhKFdZ9eIiq5ob5DZGSc4SYtD9RcKjDaOYKrk/sd0E7AZ7p/2UpxkZ3ea nqBNEu0hjs5q8tRq9l7LWhto1vgz7TeJkfOaOXPQVaKSvELIkeUv4BsK2Uv/RxLbyPArTT aeAyDmlss6EJRu6Y0cX4UbC1oqoDoqrnDOb7TGGHaZTqzuxDxWvPqdhj1Q60fA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b=nl4c9v1G; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="P +GqCCI"; 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 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 E532538E0B for ; Wed, 24 Apr 2024 17:02:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rze7s-0003CI-BS; Wed, 24 Apr 2024 11:01:36 -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 1rze7e-0003BT-4w for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 11:01:26 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rze7c-0008Hg-46 for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 11:01:21 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id F3E881140193; Wed, 24 Apr 2024 11:01:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 24 Apr 2024 11:01:18 -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=1713970878; x=1714057278; bh=qK7fRfWSXD62j5xWtKiaMzplLvabZwhU Iapbw1xSCx4=; b=nl4c9v1GY23Qv49m/EHDUybsnGXzGdOBL1oMyQVHerBv0ln6 U46VyBWeFCHH7H+eq1REIYRRVF2S/1blreMgu1ns5/NStwv+D3xI0QiRcNgpHbYW Q/mQFCGD3avu+OhOatsD9susCQ6jlxWH6u/2Chao6EkH6TD8NwV5vgO3X4D7tMJv /Hm9yW6PVaiL4OlAUiXRd/VWHGlQzd8GjJApvWPD4rr7MqvS6NWEgS3DU0Aif9LK /vHuC9IVGB8Mk8LkRx8WH7lPl6afVpmcvXpjEzLfH1npJqhJQJReKvbZBWgFY0f/ BJgg9DdTU2mb3D9yyzjrJ4rJLnMVP7TgNAWn2Q== 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=1713970878; x= 1714057278; bh=qK7fRfWSXD62j5xWtKiaMzplLvabZwhUIapbw1xSCx4=; b=P +GqCCIhaZiIKTyCv2q1FefdJj8hSZZSG9WDwI2pkulkqsWvHAjLwaoSHkcz/pZP3 qujXcnjdqx4JXxD2dSuVelq9lTkg0pBOBzg6AavhdcDHgY9PkEzpj2+zeqENng1e j2/AA8ekMg1RVEftFrCqbjjdC3H3eiuLel0wVK6PqE4xwlhyTlrILhlASMUIE347 1MRq3k3/kgHu1Li8MnYxzR2PMm7PUj4yrEuCDBFrsDkahO3gqtyAhKwKgxLJqcOS C+3x5DibuVivAAezO6uC/wMywJR8EPt4NLc92Z/TDI59WQTNr4KjsfWjybANISwJ /M2KO23t2zvKsFKMIc7Jw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelhedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhffkfggtgfgsehtqh ertddttdejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhl fhesrggurghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepkeegffdttdduve dvtdeuvdeugeeugfeffedvhffhveekjeetffdtfeeigeettefgnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholhhfsegruggrmhhkoh hvihgtrdhorhhg X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Apr 2024 11:01:17 -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: <8734raewr6.fsf@localhost> References: <20240423164458.33702-1-rudolf@adamkovic.org> <8734raewr6.fsf@localhost> Date: Wed, 24 Apr 2024 17:01:14 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.158; envelope-from=rudolf@adamkovic.org; helo=fhigh7-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.82 X-Spam-Score: -9.82 X-Migadu-Queue-Id: E532538E0B X-Migadu-Scanner: mx13.migadu.com X-TUID: +jrughpgFdRt Ihor Radchenko writes: > May you create a test for this with expected failure? Sure! Here is one: (should (equal "{B}" (org-test-with-temp-text "src_lua{return string.match('A {B} C', '%b{}')}" (org-babel-execute-src-block)))) The return value from 'string.match' is the substring "{B}", which Babel misjudges to be a list and signals the error: (user-error "Inline error: list result cannot be used") > Applied, onto main, after [...] Thank you, Ihor! Rudy --=20 "I do not fear death. I had been dead for billions and billions of years before I was born, and had not suffered the slightest inconvenience from it." --- Mark Twain, paraphrased Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25, 84103 Bratislava, Slovakia, European Union