From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qB64OsdLB2SadAAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 15:35:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MFrhOcdLB2TUMQAAG6o9tA (envelope-from ) for ; Tue, 07 Mar 2023 15:35:51 +0100 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 A3EA438985 for ; Tue, 7 Mar 2023 15:35:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZYP9-0001rh-6v; Tue, 07 Mar 2023 09:35:03 -0500 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 1pZYP7-0001rW-Q7 for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 09:35:01 -0500 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 1pZYP5-00086r-JP for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 09:35:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 92BA824079E for ; Tue, 7 Mar 2023 15:34:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678199697; bh=N318RilQzkmJxX0JZjrI4AvlJPyplby6h7DbuZjhnC0=; h=From:To:Cc:Subject:Date:From; b=pWJjAOdqjEHnStC7gog6kpH+XZx+tpfZbZOiOW99rEAc+L3oR75T7pmLSmg6Hppr3 TWWsCZEFyTlatomg8tw5NaoLexaNqjxvEttCARM8DCaEV50I4yX28BwQxnr7dzh6FL NlEcSXvUdQPe1vWy4C9KPsYAoZEkU5GAVY5r33pox4DX/upXiSa1f1SwgQD7zTM28Y OPi6h0m2vrStcZOD1wSSxsIa89sHesdyzpHR8JZlqDwDuV07KfSRiA0bOT/woFjfCv SoBbYXccJibc7oWEt3KwK2MoYpXHwFPqE4f4362S7ty7KmacUxCM8YN9F58XSIU5JL A4FgjZSqJ3mKQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PWHz30YLhz6tpD; Tue, 7 Mar 2023 15:34:54 +0100 (CET) From: Ihor Radchenko To: Zelphir Kaltstahl Cc: emacs-orgmode@gnu.org Subject: Re: org-babel guile source block bug in handling multiple values In-Reply-To: <9eab60bc-9b82-e037-d63b-3d879573ae32@posteo.de> References: <9eab60bc-9b82-e037-d63b-3d879573ae32@posteo.de> Date: Tue, 07 Mar 2023 14:36:25 +0000 Message-ID: <87v8jceihi.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678199751; 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=CTPale9GxB8PAe5jO5xSil9SKVqVDAq+YcGuMW7O7vU=; b=W62G3DtUQKXX947APJlbxf1LwBWi6j7n0PIcjlCslhXCNdZRGbGKZM558Dh95vEfRBN5px 7GrvzkwtQWZXsFEYHh61KQXiuxxneCEe/oC67VlfLxFJH1gvpZxC+/GpNoZaOrTi50LD3R eXU07t5R15qWNDPfv8muvE55bOmbs0AEh9bHd8Dr/8AXoURC0FiMritfHBHXOXhO/nGAHF /sePab9NyO8kXpxk4XgYkK2QA08mxPY/FmFonYjLwZ6sezZiOHDf4K9E4LC/NexVypS/9K uTf3gTio8lTDgead06osC1Ta1xtQlgwS4KC5rsY780SNcXvdI26pCxO0ArClnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pWJjAOdq; 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-Seal: i=1; s=key1; d=yhetil.org; t=1678199751; a=rsa-sha256; cv=none; b=WYuTIFg9y/ACVec8pIISxTbnBuRR6VptVJyf5T+NwjsqbV1jvUFf7TiWilV5v8FP8NlJL1 /zdQYQzOeIWgAAOuBtSCSsmd0hmFv+MLspLeHls2a1ENhygVk4zGFjWqtEbt+cT825iqiI 9AxRprktcgroHRhSZ0UQu84gTOw59LzTm7HRPdLxPU6yIQ+PBM7ODYNcacrY/kYat2ndz2 +nZnmPWV6HWgUHJfZPczteLMq/TxBdXyGHrYe3LqnjAviE5eu6yXNjl6USF4k9yAVxikVd HbRjDC7DPSdLe0rzgFAEuMAoJRoO0JFWI5p7Alh8uZrC+mrLwOfGwQdXg0TK7w== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pWJjAOdq; 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 X-Migadu-Spam-Score: -4.70 X-Spam-Score: -4.70 X-Migadu-Queue-Id: A3EA438985 X-Migadu-Scanner: scn1.migadu.com X-TUID: G48kU7rUo3pR Zelphir Kaltstahl writes: > * Multiple values involving =3D:var=3D variables > > #+begin_src scheme :eval query-export :results output replace drawer :var= x=3D1 :var y=3D2 > (import (except (rnrs base) error vector-map) > (only (guile) > lambda* > =CE=BB) > ;; let-values > (srfi srfi-11)) > > (let-values ([(a b) (values x y)]) > (simple-format #t "~a ~a\n" a b)) > #+end_src > > #+RESULTS: > :results: > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > Unbound variable: a > > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > scheme@(guile-user) [1]> > :end: I am not familiar with scheme, but AFAIK all ob-scheme does is wrapping the code block into (let (...) ,@body) See `org-babel-expand-body:scheme'. May the problem be with your let-values form?=20 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at