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 8OO8N1CWB2THNQEASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 20:53:53 +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 0MW6NlCWB2RlLAAAG6o9tA (envelope-from ) for ; Tue, 07 Mar 2023 20:53:52 +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 96B80E1FA for ; Tue, 7 Mar 2023 20:53:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZdMs-0007Im-QC; Tue, 07 Mar 2023 14:53:02 -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 1pZdMn-0007IC-7U for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 14:52:57 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZdMl-00043V-QQ for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 14:52:56 -0500 Received: by mail-ed1-x52d.google.com with SMTP id j11so37486716edq.4 for ; Tue, 07 Mar 2023 11:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678218773; 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=cX3K/paa5j752VtFPx/rWp1k2Bs2pKEXoosOi4sA6Lw=; b=C3AJoBqh62BxJ3oFA4YUJmX6uNwFuVgjMJi2dtgCIV/SNpZcYuocv0034R0W+eQTJD peQ/f9QZxwngk8pixFeEvD1bBbMLNYOhEbcPcyzSQMX25RQDr2FwYwKaxoC5MU0YwCVC T8vCACNHKwxikdfW9yUND8owqyFU8tSnaBgE1d4boh8dDh1TnDOI0ih7V4Fk1hRnT/+/ 9H7OB58sTx+YaBN6O9tolxsCVvgF1E6RDd7iIIuxmciFXrIXIatC5NAKvshHqGh2GM6F qnsNcKGkHqRY0mjP3wVK2gjW9xYo5+HbGODrhwLpp4Ty+QmiG5ldZVZCxzHFGxfbY8Fi F6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678218773; 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=cX3K/paa5j752VtFPx/rWp1k2Bs2pKEXoosOi4sA6Lw=; b=OxVZmBilrmlwNTAbzCtbI47Y4L4Xt0GK/X+x3cIzCeMMMAZdBlCcfqTVzr9g2qn6Je 2jn2kJuZe43pjOLdVpDd87YFAaobHDNKmyuta+UC6IlQGgmrcbWRPpQS8wCCv2elxQ3F Tye3e60LKOKqJQ0HdCxOQzOVUJufDEy+EKcxBeFSnicyMmrv6wQXsQwUJDU6S8q0d/9p zL3+J8Gm1tvQSRqrGrLrft3bgMQHDk5W7i1v8HwR3Qs4ecd2V8qhNsiUVYQfNM0ObZFe RjIS4o6PPhRyiQ0zU0eKYpbzi/0neJVYqdPtH8LgmfRe5b/RbwYqRltLo+UviYw1MyKP NW0Q== X-Gm-Message-State: AO0yUKVlQ9KTWpIMTfccgOWlEeF8s3m5VqUYvwvFlr7klFYvBXEwJuQx 7wtAcletjzq8xf/Z7qkxTaQ= X-Google-Smtp-Source: AK7set+gNgeCZzgG3qOukHh9oL1NWk5Dr6FvAAXz7vQUvq2O8DVfbhKCUuJmEuv7GwdLctUHeWXtuw== X-Received: by 2002:a17:907:8d1c:b0:8c8:bd1:1d7e with SMTP id tc28-20020a1709078d1c00b008c80bd11d7emr17610303ejc.18.1678218773218; Tue, 07 Mar 2023 11:52:53 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:169:7511:f49a:58eb]) by smtp.gmail.com with ESMTPSA id qo3-20020a170907212300b008d2d2990c9fsm6578336ejb.93.2023.03.07.11.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 11:52:52 -0800 (PST) Message-ID: <64079614.170a0220.5a0d3.0a23@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Tue, 07 Mar 2023 20:52:50 +0100 From: Bruno Barbier To: Zelphir Kaltstahl , Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: org-babel guile source block bug in handling multiple values In-Reply-To: <7fc63848-d6d3-80e0-ae78-00967990813d@posteo.de> References: <9eab60bc-9b82-e037-d63b-3d879573ae32@posteo.de> <87v8jceihi.fsf@localhost> <7fc63848-d6d3-80e0-ae78-00967990813d@posteo.de> Date: Tue, 07 Mar 2023 20:52:50 +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::52d; envelope-from=brubar.cs@gmail.com; helo=mail-ed1-x52d.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: 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=1678218832; 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=cX3K/paa5j752VtFPx/rWp1k2Bs2pKEXoosOi4sA6Lw=; b=aDTdI8y/Wzc+zcUsivbdJFMuJ4V4doZiNG7MXjaDhH0/yTzRHshkftBtiNano8cZ+vkqVT toj463ox/Iu+/3DKx/vtPGAikVCtEHoenh5x1cSP7Tgy2ogMNeUuq9mbp8gzkL+gkEFZ8y pCQQ5xHgjS6f5bJhUzDM6wbotMxmnL0wCN/sYQliCe908ls5u3NuM4dNC272FMUhQtBVgT enVCzMadxjbfL4KQRjCF0hUq8TUsmThrYsUdZKniSeHVMDEtzoI+TSKt6GvfooT7KlNqZw wcgHfNXDgSN61K0pVuBPiaNe5jFKmL965y47913018u21ZWOZ4Hd3aazCqH6Qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=C3AJoBqh; 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-Seal: i=1; s=key1; d=yhetil.org; t=1678218832; a=rsa-sha256; cv=none; b=Uq+V3HL1zKWTlrpnLzUqbujQ6LVqC/TGw3sI+zz74TFB96bRcClduLBBYyj9Ztj5M5BMCg 9udvlkixtzstPjYNy0jqFsRemhkgRAUA/co6WELFkqHzEBOXLZYOkfLHsUWXkb/0qmgryc BJ0LhfsIIp2EWjCljWPC/vR8PnoOnlc9cIUF6TRDc/DiPdehramuP+L2ELk07CJlCxyXB5 EDdfKev9H6sIAZ6PpcLkFQFFRZX2nOvOV1rbYZpGFnJ5udrJRsyrHXrnEFZFWb9hDmA4Th kb50jZjHVGynORSwUZGqnqMvbSgFg62mix5qlQKTBNJ0XpSxeKFVmiS+BVRHCw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=C3AJoBqh; 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 X-Migadu-Spam-Score: -4.93 X-Spam-Score: -4.93 X-Migadu-Queue-Id: 96B80E1FA X-Migadu-Scanner: scn1.migadu.com X-TUID: EJswydUCgSj/ Zelphir Kaltstahl writes: > If org merely wraps in a `let`, it should not notice any of the multiple = values=20 > business, because that is something done internally in `let-values`. > The "let", to define the org variables, ends up putting the "import" inside the scheme expression, like this: ;; -*- geiser-scheme-implementation: guile -*- (let ((x '1) (y '2)) (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)) ) which raises an error when evaluated the first time (the second time, the "import" has already imported the new "let-values" feature (srfi-11), so, the evaluation works). You can test this manually in a guile session. I guess you'll have to use sessions, and do the "import" in a separate block first. Bruno