From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CN3lEZWtUmKTgwEAgWs5BA (envelope-from ) for ; Sun, 10 Apr 2022 12:12:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yFiOCpWtUmKJ5gAAG6o9tA (envelope-from ) for ; Sun, 10 Apr 2022 12:12:37 +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 CEA61248E6 for ; Sun, 10 Apr 2022 12:12:36 +0200 (CEST) Received: from localhost ([::1]:42552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndUYd-0006LU-Kx for larch@yhetil.org; Sun, 10 Apr 2022 06:12:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndUXy-0006LJ-VR for emacs-orgmode@gnu.org; Sun, 10 Apr 2022 06:11:54 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:44228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndUXx-0004N5-Be for emacs-orgmode@gnu.org; Sun, 10 Apr 2022 06:11:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=37UPhXCu9TyyoylwDWGDXa2il1tcsIH/iB740MKmZp8=; b=ZJoMcz3KbmFEvsvtLmK/mOEEZa 7Da9i4BeiSZfy2MFyasVNWeY9GBbd+2fDryIFChPrTnyEq0TUO+xvvDriKxL3nZIDGadVdJd1zuhH oJ3v9JVTdOaLPsYNPHMJaZ9qSSshpgEktqxKwCjjt1ksH2QOHwuP3X0efbNVj4xGY101vs7n1fxsq RZlSdlDG4YS2hTlpmIjfDGfSpRphzqOXWEVWgQBFUmQfy4qER+zjJzzaAc2TeMhRtZ+e+NAFBm5jg vBsbhY/+hSVm0Oiu3YPu0UK0oxP5gEdDnjvPVnxotkuAUtCUYTBaUqs3qqaIRQY4QE2tW7HYAPy8Z pFGpLWjQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1ndUXu-0001Nj-VT for emacs-orgmode@gnu.org; Sun, 10 Apr 2022 12:11:51 +0200 Date: Sun, 10 Apr 2022 12:11:50 +0200 To: emacs-orgmode@gnu.org Subject: Re: About babel and header arguments Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yzS8dzqb5lezqH/r" Content-Disposition: inline In-Reply-To: From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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=1649585556; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=37UPhXCu9TyyoylwDWGDXa2il1tcsIH/iB740MKmZp8=; b=IPcF0JfB9fQy5MQj0W9L+udK3td+K6rg4Sqv1410xKsyWbPpElopmbHithJX2XjBYalblC hWEzh8e3qTIgv9Eo7nVvnTNT9S7eU/0LOiAU+ZPHM7pn2hw/76tlsjSZ9zD/uAaGGsg196 7e1Nc15GtY/VtJtnq82Fig79ZDQ7KamKMygvsUZLhJxwuCCi7abQ6xvNPxZSfLw0l1Qot5 MQ+JnYcn0FDf2Lf7DWBfIGwLu2PztNJvFKeJE5r/QYHFwgK+2JvF5/nwhRxjVSEUKqfvoJ uMnnnyMuvRvIfXH8szlQeMd2fMyfiq3qIinmrtknnkAEJP7JBQ4ysCraAy2fXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649585556; a=rsa-sha256; cv=none; b=AEuU19S3Kt5kZsiCCqhBrjaKHBErlZYNP9WSX0ltz8Zfh5uz25Je+EghiV8rfmjf6pdxsT VeDR3DguY64jTDHY7Yb2qPdfbpmN31F7kxDmyDYRSFDYQLBWYyDnO5k9pjuEiR3JzkbTYg Ne1+ASgKY7dUEc3tEXoUFkn5CBNEfIoMEPO3lrq5Z8ALru5aPTLKQNfha0L0BjpB/OqTIZ +urA5NeemIvoW2XBrujs7SvFn2KuvIYLXVy+dQ8u9ptyIwTCP7Ps/IJl9C1xIU9/XsDVPK WxtG4/vkhQujNL/BFG8cw8Vltr7jrhgPGBNGyoP9J8HpeL8quxX5EXwPoXNjOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=ZJoMcz3K; dmarc=none; 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: -0.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=ZJoMcz3K; dmarc=none; 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: CEA61248E6 X-Spam-Score: -0.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: jEBN9Hudfce7 --yzS8dzqb5lezqH/r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 10, 2022 at 11:53:51AM +0200, Henrik Frisk wrote: > Hi, >=20 > 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 interpret= ed > as I would expect it, but in the second it isn't: Hm. You are expecting (12 10)? > #+begin_src scheme :var y=3D10 :results value > (+ 10 y) > #+end_src >=20 > #+RESULTS: > : 10 >=20 > but not this: >=20 > #+begin_src scheme :var y=3D10 :results output > ((lambda (x) (display x)) '(12 y)) > #+end_src The quote extends to the whole (parenthesized) expression, i.e. the y is quoted too, in there, so it's the symbol y, so that output is correct: > #+RESULTS: > : (12 y) (That's Scheme, not Babel doing it). I don't know where you want to go to, but perhaps try: (list 12 y) instead: this would make a list of whatever 12 evaluates to (this would be 12) and y evaluates to (this would be 10). Cheers --=20 t --yzS8dzqb5lezqH/r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYlKtZgAKCRAFyCz1etHa RuciAJ4xc4fjAUfGuLzCeizUsg1O6k2f5gCfU7L994ROX6cYmpaZHF6V0PAyPqk= =b4Bg -----END PGP SIGNATURE----- --yzS8dzqb5lezqH/r--