From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 ABfxLm/kCGR1TgEASxT56A (envelope-from ) for ; Wed, 08 Mar 2023 20:39:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sBS8Lm/kCGRLmQAAauVa8A (envelope-from ) for ; Wed, 08 Mar 2023 20:39:27 +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 6D278F4C8 for ; Wed, 8 Mar 2023 20:39:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AyrbSCpS; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678304367; 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=icSMWkDsgdTIUSoXD5KTczEhMI+UaPOaBjmC878HA+U=; b=Agm7EBS4hthQbaZBSn0bccUieN8XLV91f99y5dcr+w/XLeo4kdEEtxw/9f2D3rN5o0Jqkm KkC9dxjCxhEFHIKT3//JEucFnFqWsf51vFpXUhczK7EBVmcdbeQ1IifO/PFLJVgJNRTMDX FsoxkGXvu9J/1FsWqsGtmU4aBajYdq2cdqa0DFliKmAyxvzn1oL+di13P+L2SXpEMTxg5A vw2dXOM0Wpp587qH41shwRv9IyyPw0byRyx6KkRVCfVv7CnwA4I+aqMQ1O2zDxrfKWWh5o Q4DKS1q1E8dP18f4Rf4aaGnTcld5j2TRypqOBWlJ36YveLofcDLq/bPkpPwghA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678304367; a=rsa-sha256; cv=none; b=W9otWZvfoNNgYkbU9rZavkUKOXsgKHuyRBWPtg+vKsQs+5MVGwFubMIUPdigt2K8WAAxYc Ewh8wAcBJ2gB3sY/7iX2HxYGuQqijCWT+b5hr717Mi77+ILSYqtgerazyYFQ4gWIPwl0Td nvj4g8giJRdg5h5d8sRA083EPjt5BmZUaReG68Thfny3t51W8Phv/YWytvMdNIEn+KKGhZ W8dzixI41e+dLy4ntIcx8zey/iV2w95S6/M19XORBl54S6dlOQw119UknJ6y2IAyLI7zeC w5gP6ekJ7CKBmK9ZNS98j0J4+R5CotB7tMFuWGloBJTQP8pFySoWEUz0EqV3cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AyrbSCpS; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZzcF-0008Ns-S3; Wed, 08 Mar 2023 14:38:23 -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 1pZzc9-0008Lo-0a for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 14:38:17 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZzc6-00073U-EQ for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 14:38:16 -0500 Received: by mail-wm1-x336.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so1829981wmi.3 for ; Wed, 08 Mar 2023 11:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678304293; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:cc:to:from:message-id:from:to:cc:subject:date:message-id :reply-to; bh=icSMWkDsgdTIUSoXD5KTczEhMI+UaPOaBjmC878HA+U=; b=AyrbSCpS0nrGi7887fDKex9PociLT66RamVExeMZtPq/xwsF6XfREU13gkr5m9Q9j1 XsPYWW88kSs9r0Vl60RN7bB8YHD2aR3mFMpxuICl9PMlQ5+qn2yeNb6ed6+gLeIu0ak6 +gayT/tHSpbSldQJ28+hLI+Ob6kMa+QRN9mHMQegijmszmdc1zY3iuJefvp12Y/jIF67 9qXRN+wMUtaSRQkuHw3vqWX5uRmrNSl0lgnxMpGHJvErHhhuLbjIzbASBd+0tXqxHNPA jlh137uLHWOVr4TPfXwfSeAq7fWO31qPLE4997ppFC6tVpgxBnM+1YVPIwPWqzhILxcA 2/og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678304293; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:cc:to:from:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=icSMWkDsgdTIUSoXD5KTczEhMI+UaPOaBjmC878HA+U=; b=vqNaucpkcnOpHAgMZTsRnpvE9y0EKIxFeDazWzOrirjVigLqRy57bQpf3lVUeJV2ig uX8w9sqZsb3T0lohxOp3kao2Kw30mbhbgalNJNgc9ZpPbOgAffRrN+fBvqJgoh+qph5f K+8nv9ugzJVZsmARWj+3aC+NKNQ1Q/aGYzdJiO7wfD8xcsMi6Ne631cgfIMPuqd/ZZSp IC31z/jC4F5JA60XXae4MfxZ+dMX2l1VmN42Bbh8qYk4/oxqealcuB178lSQIEKpyexw HDMVARhXAlbgJSG7y5C1iQl1gpyb5vOeCLkph1+FMrBb6Nam4uaOZXbFCPdZbnaH7mts LKMA== X-Gm-Message-State: AO0yUKUVG1rwrgwnEFTbndiprcKBjaJiEDVEFPkgGj6h6erLWE0nYNV9 SSYr9ifwtZB+OpNMUrawpi4= X-Google-Smtp-Source: AK7set9ZfS8FcNRU9UlL45Dw369Btc/HTCpck4qD8hbLYmrp+YqCLtM8j4v5gi0tptKRH1/o/hnqHA== X-Received: by 2002:a05:600c:ad3:b0:3ea:e667:b1ee with SMTP id c19-20020a05600c0ad300b003eae667b1eemr17035863wmr.38.1678304292892; Wed, 08 Mar 2023 11:38:12 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:169:7511:f49a:58eb]) by smtp.gmail.com with ESMTPSA id r8-20020a5d4e48000000b002c5d3f0f737sm16143284wrt.30.2023.03.08.11.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 11:38:12 -0800 (PST) Message-ID: <6408e424.5d0a0220.8862a.2a62@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Wed, 08 Mar 2023 20:38:09 +0100 From: Bruno Barbier To: Zelphir Kaltstahl Cc: emacs-orgmode@gnu.org, Ihor Radchenko Subject: Re: org-babel guile source block bug in handling multiple values In-Reply-To: <97ee254e-72d2-2bdf-e026-78bde076f1f9@posteo.de> References: <9eab60bc-9b82-e037-d63b-3d879573ae32@posteo.de> <87v8jceihi.fsf@localhost> <7fc63848-d6d3-80e0-ae78-00967990813d@posteo.de> <64079614.170a0220.5a0d3.0a23@mx.google.com> <97ee254e-72d2-2bdf-e026-78bde076f1f9@posteo.de> Date: Wed, 08 Mar 2023 20:38:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 6D278F4C8 X-Spam-Score: -6.43 X-Migadu-Spam-Score: -6.43 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-TUID: 43rq3ADuiXBJ Hi Zelphir, Zelphir Kaltstahl writes: > On 3/7/23 20:52, Bruno Barbier wrote: > Also thanks for the idea with sessions + separate import source block. I = thought=20 > that should work, but apparently that also has the same error, when runni= ng for=20 > the first time: > > ... Oh, I see. I tested something way simpler :-) First, one block to open and configure the guile session. #+begin_src scheme :session "!guile" :results silent (import (except (rnrs base) error vector-map) (only (guile) lambda* =CE=BB) ;; let-values (srfi srfi-11)) #+end_src Then, you can get to work and evaluate as many blocks as you like in that session: #+begin_src scheme :session "!guile" :results output replace drawer :v= ar x=3D1 :var y=3D2 (let-values ([(a b) (values x y)]) (simple-format #t "~a ~a\n" a b)) #+end_src #+RESULTS: :results: 1 2 :end: Bruno