From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4EXIIHOpUmLxaAEAgWs5BA (envelope-from ) for ; Sun, 10 Apr 2022 11:54:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kCwRHnOpUmJiPgEA9RJhRA (envelope-from ) for ; Sun, 10 Apr 2022 11:54:59 +0200 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 09632E16C for ; Sun, 10 Apr 2022 11:54:59 +0200 (CEST) Received: from localhost ([::1]:38728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndUHa-0003N6-7x for larch@yhetil.org; Sun, 10 Apr 2022 05:54:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndUGl-0003Mw-7j for emacs-orgmode@gnu.org; Sun, 10 Apr 2022 05:54:07 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:40829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndUGj-00024u-QC for emacs-orgmode@gnu.org; Sun, 10 Apr 2022 05:54:06 -0400 Received: by mail-lf1-x134.google.com with SMTP id t25so21823654lfg.7 for ; Sun, 10 Apr 2022 02:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=CjfLirNCKSH1btwFTibkh88GYXdD2zWZG0/msQM/FBc=; b=NIpDRDqSub+AlMR4IK7FBqHoE9pCmVTCcJJ0INW4fsoh3e1kI/EV2IneGmKgOLNk4t kYg6WXaJYIhjN0XG30CIiNBJRDdC7r5zAGVG2JhEP18tBFwIWXqi1m57hTDQ7wnj7eQ4 ZFXwRsroC5I2hfaHiIPaGjN2d49zXeFb2MaJidQctkbLcawVp5EUhqmaQfrx811MuBCR /dE4O5avLK1nbRLBLa41UmIcpKFByVwB2yU+jHxpekqkJjLErqA9zY290j6ADdjBe5B/ G2TtdzUx3fnJqASINmTXT3lyYWnw9UCwfd1g5Ns5NZmSnzhqet3FZgsnz591QX+F8bec qoTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CjfLirNCKSH1btwFTibkh88GYXdD2zWZG0/msQM/FBc=; b=pJl4OrPueBdtzWcWlijiEimNbAeQZtiJUmExXR4O2O/cYtUz76Dt4SahypP8PsOVLZ Jy59UvN+7Y9YNEs9dniXqiAMbmDqro3lCtFaqyW8FQQXb0FhDPuaGhVCBBU+j6UEWVum rsAYjBp0cqReKKSpEwYH5vZWWKbMJHPTaJQd5BJnR7kYGovsvH7Jihx7EcP49woxEEfs KpIcmzNknQBeoOEz0ygOeUoBUaiQCSyLGmpWfkg0NjG8Mhj/VNIfNouZT5dsEbop5B1K GeNhH5hrP52ecJiiYINSSbukY2UDk/h2DofujWY/jUgT5apzroe2jFRQVA1pq83cUc5g kgHA== X-Gm-Message-State: AOAM533ZIFadVYR0NBuGhPaeJmJ15rTc7I9l4Huir08vev9shdBTXZ86 CrN/5MP+/4W3e1kpF4poBrFmWcacY4L9qopZuZM2EmP3t0Q= X-Google-Smtp-Source: ABdhPJzOR3vJjkX7WwgOiUmgv6CxQPSyW3+gYpEsno34cJKhLs4sMYigCUv4QX9se5tD2XzuacgF0+eP156F3k0oZMs= X-Received: by 2002:a05:6512:c22:b0:46b:9e36:223a with SMTP id z34-20020a0565120c2200b0046b9e36223amr2585162lfu.658.1649584441891; Sun, 10 Apr 2022 02:54:01 -0700 (PDT) MIME-Version: 1.0 From: Henrik Frisk Date: Sun, 10 Apr 2022 11:53:51 +0200 Message-ID: Subject: About babel and header arguments To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000af9f5505dc49ce49" Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=frisk.h@gmail.com; helo=mail-lf1-x134.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649584499; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CjfLirNCKSH1btwFTibkh88GYXdD2zWZG0/msQM/FBc=; b=k75emWdaTBeLGF4Ze4xVcJ+S/qY46YugfoXE1HjljfRQIEIx6xRqF8EwPOGCsgKtC53dm5 +G9iqdP+MhZMEc2wgVTYLmiF1Nh3pHqK1N2K3BNTx/tQY5yj82ybI1a/sRZumjZPYw2OEf xMQYw5u/2QijaCpXWH+zipd0KPyvUq2nDbJs7yBfHsf9x8V7P0X+ahuNTCUSKGoOzCkknM 07Q23ns7J0Q1tRtGcQG9YSj8JGZe3LTuwY19mZjZvrpprtYmNTL6kyv3oq58L3WE+gY1KK cPy7zAQ3EyagwNCKY3voLAuBzqDk5gVvFyezCdZYi/8v/OszM8zll9niemM1jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649584499; a=rsa-sha256; cv=none; b=Z7e7S2eTC1Xg/WBldIAlFObenjjpHZXwa59oa0JjG//QoeRDM8oj3Xl4NmhSJ8zzmm1CLG 8b9Hf5ipSE24Ov7fs8bWYfbM8V9I5TsZFkAZixMVttvQvM1dW4s1UxJ5d7Vup3VzmekjfN tf/IEtr2IUPPXv8WC9/QcMjbAPDb0sFoC2FOMc0r0bfjeQ/kq0P6fjzDiWo2etEDfj+Yq9 hy8E7C5g/FFekl6aY/FlHEwUjMVzMIiFDesadrtpKM5hhihxSWpO8PxRgaW0peJ37wdMGY 7SaTZb7yPRfo42UhkceZsaKKQ8LhjUCbuc59+RnhaNZlqT2Wa1jNq33oI66PWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NIpDRDqS; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -2.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NIpDRDqS; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 09632E16C X-Spam-Score: -2.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2qDNQKZ6UR/e --000000000000af9f5505dc49ce49 Content-Type: text/plain; charset="UTF-8" Hi, I'm not a skilled (scheme) programmer so maybe there is something obvious I'm missing here. In the first example the header argument y is interpreted as I would expect it, but in the second it isn't: #+begin_src scheme :var y=10 :results value (+ 10 y) #+end_src #+RESULTS: : 10 but not this: #+begin_src scheme :var y=10 :results output ((lambda (x) (display x)) '(12 y)) #+end_src #+RESULTS: : (12 y) Thanks in advance. --000000000000af9f5505dc49ce49 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm not a skilled (s= cheme) programmer so maybe there is something obvious I'm missing here.= In the first example the header argument y is interpreted as I would expec= t it, but in the second it isn't:

#+begin_src = scheme :var y=3D10 :results value
=C2=A0 (+ 10 y)
#+end_src

#+RESULTS:
: 10

but not this:

#+begin_src scheme :var y=3D10 :results output
= =C2=A0 ((lambda (x) (display x)) '(12 y))
#+end_src

#+RESULTS:
: (12 y)

Thanks in advance.=
--000000000000af9f5505dc49ce49--