From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mG8/Nk1NCGT2pgAASxT56A (envelope-from ) for ; Wed, 08 Mar 2023 09:54:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cGJrNU1NCGSNNgAAG6o9tA (envelope-from ) for ; Wed, 08 Mar 2023 09:54:37 +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 57BDE28ADE for ; Wed, 8 Mar 2023 09:54:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kCzUpUya; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678265677; 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=XD1K6WqJRAYn8JmP4loK9JeALFmh9GLFS0fPHmfoFVg=; b=YfOqIcjq8omIOlqNHUAUTG0tz7g1CJ40iYO3xm6OSqmkax6wLXF7cc6PE42ZQU0qVkxB2X yn//kgXc4nzc3ELRk8dOTBTvhK4q7ty2/gLmIxv+O1zCRqPNUxdLiT6nCHlpayHmL/aUbv SapYeujuFUp7ExVv+lKUdlWVINZk4jbWQN6RgNehjpxTM5GVVKaRAp5+GcocaK/yn5vUpU 1/wKWd1uNTk4wLHb4WarCT5rEwl0+Sj2Penn1TFxQB/cvQ2tyuEZTT7O3XsUh7Kz2p4uBI Dw/HKBYb9RMoQVeNU5IhyM7jTQKGASUdW/J98La4ghjzjs1jGKCuiwu8jHpM/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678265677; a=rsa-sha256; cv=none; b=YrWrovMoF3Y0Kh4A6RVqGbpI+aIxDMGe2TD0U0MsDYD63zm6CV1xjhFf5I+w9eZDKQL+oa Hyg/9zUKIz5ORw0nd/HfUENwtpyOPov7SMqJ8BLqTqJFjJid5Ihm7I3EwoaFHB0ibNshW7 V9Y5BAmf+UYQYyyNjlvUHC643FJv6hSIjyo7Ok7DcT8knLooHxwNuB/qDYGjrygCJaIxgr kldid+p38B7XX2EzboTLzIjANg8icq3yP78jJPYm1f735x+UsW7EP6UpJXfFIZ15pvqTIR kZL4pAMUR07jxr2PPh14KMx8Rn/cpEwhqXTaStPwxQYLcig/DX2+R21L99bs5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=kCzUpUya; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZpYb-00053Q-KE; Wed, 08 Mar 2023 03:53:57 -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 1pZpYZ-000533-DC for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 03:53:55 -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 1pZpYX-0007RJ-Dt for emacs-orgmode@gnu.org; Wed, 08 Mar 2023 03:53:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2091B2406D4 for ; Wed, 8 Mar 2023 09:53:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678265630; bh=wuwbtGJLnLYyf7vkWsw0uJcPjxMd4qZjmkuvjFNCoIQ=; h=From:To:Cc:Subject:Date:From; b=kCzUpUyaJfuJne5HgsBydR8Ui4V9RtN+3IPKORvbcZeMt1u3ldeYpvqtwkthsUecF qMtpvjfNk/SnfWGwH9mc/GPyVktvTE/j8qTEWT9FhpbFO0d56rUy9tPgCPrc7QkS2h TUJBXFhodqA2JNqHov+QZIuTML2ENTfoNoc+B5/6hDT50IdxEnQKsQrUTQFTS85dBX I+mm/56Ca+gayrHlYx5586ayhzNcJuDtggo6o3Ciu/9V6DGMCkZeccpBeGpaZw4M5F 0s9F0T4fxh9/O3pendkz1fQ3z3uqaJK4FhXNLoKPM4m8K03wnMvTaJRYyFFEYwf6q2 HhMBCBzyLX9HA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PWmLx6LrNz6tqn; Wed, 8 Mar 2023 09:53:45 +0100 (CET) From: Ihor Radchenko To: Zelphir Kaltstahl Cc: Bruno Barbier , emacs-orgmode@gnu.org Subject: Re: org-babel guile source block bug in handling multiple values In-Reply-To: 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> Date: Wed, 08 Mar 2023 08:55:06 +0000 Message-ID: <87mt4nei6t.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 57BDE28ADE X-Spam-Score: -11.60 X-Migadu-Spam-Score: -11.60 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: owrml0RCnrxr Zelphir Kaltstahl writes: > Actually, now that I think about it, the whole problem is gone, when replacing > the wrapping let with 2 separate (define ...), which I originally thought org > would do: > ... > Is there a reason it has to be wrapped in a let, instead of simply define-ing > the variables? Because (define ...) will, AFAIU, define the variables in the whole session, including subsequent code block calls. Let-binding is safer in this regard - it only affects a specific code block. For the problem of (import ...), a similar problem is solved by ob-C using :includes header argument. See https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-C.html I am not yet sure if let-binding around (import ...) must never be done in Guile. It would be helpful of someone more familiar with Guile chimes in. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at