From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mH3wJiMbC2RjuQAASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 12:57:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SIIiJyMbC2QsaAEAauVa8A (envelope-from ) for ; Fri, 10 Mar 2023 12:57:23 +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 44BA424E3D for ; Fri, 10 Mar 2023 12:57:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pabMb-0001OE-UC; Fri, 10 Mar 2023 06:56:45 -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 1pabMQ-0001K8-LY for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 06:56:34 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pabMP-0008NT-5o for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 06:56:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0EBB424039E for ; Fri, 10 Mar 2023 12:56:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678449391; bh=ZLvQ0QOmXSNeJq7ZXvjVJRb5yLYXkLjpY4EN7OfdXXs=; h=From:To:Cc:Subject:Date:From; b=KLqWNmgy3kUr+PnoAxO6RtbOairOgsBsN+m6m4Z9RpmNx5B7WF5pNmvbKlP+1pQsg +Gj3011I9RIEG3febRJJaTVudiqCMSUgQVVxrzDSkxnhIZA90HQjm6L8W+K/m3rvcp p51gJPetypb6CLNFq7zgRkNTC0Vrsvs/s/AyTZ8uOzQHM2PL3Jl15N9e9hi40gi7P1 uaAu4czuRIwq9prTfqBYANLQYWmWPi/zCPuZyOSQAfauqJRdKl/JYrupEfDMPQxh8V /+RDBQ41TzKdUlaVm2SUNqmurs1LAf/+CGatp/4zYy+UIoA6HdLEkW1/buCtCn7eI0 55T4bQfOUH+jA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY4Jr705Fz9rxH; Fri, 10 Mar 2023 12:56:28 +0100 (CET) From: Ihor Radchenko To: Daniel Kraus Cc: Zelphir Kaltstahl , Bastien , Bruno Barbier , emacs-orgmode@gnu.org Subject: Re: org-babel guile source block bug in handling multiple values In-Reply-To: <87r0ty572s.fsf@kraus.my> 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> <6408e424.5d0a0220.8862a.2a62@mx.google.com> <87pm9ioyrg.fsf@localhost> <87r0ty572s.fsf@kraus.my> Date: Fri, 10 Mar 2023 11:57:59 +0000 Message-ID: <87y1o4yg1k.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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=1678449443; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6msA5a/GJzcHEF9riHc9NYQYMMpp83CvKdtk2sBBD2E=; b=N6UfriJenaCCL7sKp+X9kWN3ecvXMnXfRhjjxAVJ3NEPc6GfcwNhkJh9BKd2jYlPOwGYLL sNkuFSlA7L1tAtAOnbwnQ2bjp/v8R5D3G5m2xqnJX3qH4mSU3t/+jk4W1clRO4dWJ8x6sX LhDmMMxYB+y63y/8GHC+PHeIrYnLt4KggfBC4Bqq93eNIVmq92Q9qhPUJ+CJGSS9asGkeU +/yNh9Ymd8sSVPs71WYk9A20SiO9LeE0IQn2nklQA4kiq+EYCwKYiPMEaUnTbtp3DHMnzv 06xE1zAv1n+ZQ3hkEzu7FKIfFSd7sdNo5WATrnfphrltJACkDZ7/9xY8MHwCrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KLqWNmgy; 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=1678449443; a=rsa-sha256; cv=none; b=nrnbqrkqPV9GTIL8/AznvtVQ6/vD0GrnYAouoPXos3Kr1gKNuv7XyKoILIybTI3ewPRpnt IzlXQoNdpRt6SU4Y12yHBt0f8ZWczZEdrQuI8FN/LwnNc4MU98oVwcMXufqHblZHSckCs4 1O/uYqi32iuYDR0FARgUDy9CbbccSwSYhA4XbE93GdtoY9W6sekKigimH2R9h4uFXISHU3 erwO11kBOiEpmuTXxcSVysrMHAuf2vZcOD0EPhXFp24CT3JvTZF2FNssJLip1pfDtfAGxP Vdh5AQC2mZ32DaSaz8FwvgYv828vUp+Q0Wa4NKHApGQJx3Gb9YxkI/2NzYquOw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KLqWNmgy; 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.69 X-Spam-Score: -4.69 X-Migadu-Queue-Id: 44BA424E3D X-Migadu-Scanner: scn1.migadu.com X-TUID: P/RBEy3S43zV Daniel Kraus writes: > If I could freely choose if a :var declaration in one source block > should create a global variable for all other blocks in this session, > I would say making it only available in the defining source block > is more natural (i.e. use let instead of def). You can always introduce a language-specific header argument that will control this behaviour. If you think that it can be useful. Note that org-babel gives no promises about :vars being globally available in :session. So, there is technically no obligation to prefer global definition over let-binding. Unless let-binding can cause bugs, as the one reported here for Guile. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at