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 ms5.migadu.com with LMTPS id eEG4GiKCzWIjnwAAbAwnHQ (envelope-from ) for ; Tue, 12 Jul 2022 16:16:02 +0200 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 KPapGSKCzWL+OAEAG6o9tA (envelope-from ) for ; Tue, 12 Jul 2022 16:16:02 +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 A25CD51C4 for ; Tue, 12 Jul 2022 16:15:55 +0200 (CEST) Received: from localhost ([::1]:50138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBGg6-0003aF-Rn for larch@yhetil.org; Tue, 12 Jul 2022 10:15:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBGdj-0003Qp-Gj for emacs-orgmode@gnu.org; Tue, 12 Jul 2022 10:13:27 -0400 Received: from mail-vi1eur04on072c.outbound.protection.outlook.com ([2a01:111:f400:fe0e::72c]:34372 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBGde-0007aS-Tt for emacs-orgmode@gnu.org; Tue, 12 Jul 2022 10:13:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=klJJGWHd8Ng0yQW3wGumUvSusxRD8eDb3g837NQe4OZdN1N+WwJwf7IRpDQRQTM1NwCrgvw9TZHuu9gYBleXb1jaMBdRNxfw42stQzszfE0LkuL2cpAA7OoyqGIWOARsuk7hvaedDUByXfp8A2SnkggAhfb7p2nx6tVnGNORzRPpTMjEj9jBRlXwFlu2Ec7RhonJTSFHS7tHXXbLloxNDovH+XBVTQT5fKhM/AwzVDbRajs8sDmNGKqYJLKwDJm89xcnpQSOFsE8cGlVxovnVP7lIurRE0b6gIVgNvobDbhar8nOnlMvLkM5HPNrYzUfTVBrM+XHoiGy3siVIoIgqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UTfQuCZbmPixGEJxkkgBJKd9ccT9E3fHfj6K1T29PBs=; b=V4+0/nKZfxa/IQC6HpoWNfpD031ee661qdky+ZVA5tBceDPnNSwn0HxxcbsMpZV5ruhUWbblhaKku3ek4VOQ+8tkJ31UrMGGn9W5TzzkF0BnV7peqx1FAC4ZIzjfsE0NpbXKWoGNIaWO0gUcMc/2s7OgSSI8HIDijdI+VHO/DpOv9U8EzFfXoiBI6b4etitkLNj4vqalQwJzFX8eitkjNIIs531NFeFQeua7U72Ev0ltOjeKyr9kTB4S7VTuFTiqIrEUkgttXEeJ8bjJiLNzUlKyLsMyhU1iiFAZLfJw8rg4XmUnWw4CNOEGJlBsqwkyPQz0+hhBZqgE/lmkFt2nrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UTfQuCZbmPixGEJxkkgBJKd9ccT9E3fHfj6K1T29PBs=; b=YxezF2r0pKetb1Od3KiuoFumWQgrclIxDMeEaiIMZhl3gTMD/enEK1cuCYOc+tGMbe4gHgIE18rS/ZGAP6v+sQrv9XRUjJSGHYT1TzoBZd/FWBpC2L5nJKzckavOloTXcWqvKw/VRsHvTPsyB4IAgeh/pbNjFS7IxcdmgdLoSw0= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by DB9PR01MB9343.eurprd01.prod.exchangelabs.com (2603:10a6:10:363::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.26; Tue, 12 Jul 2022 14:08:17 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::c154:3a93:9c83:ba63]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::c154:3a93:9c83:ba63%9]) with mapi id 15.20.5417.026; Tue, 12 Jul 2022 14:08:17 +0000 From: "Fraga, Eric" To: "Alain.Cochard@unistra.fr" CC: Org Mode List Subject: Re: Confused about source code blocks evaluation when exporting Thread-Topic: Confused about source code blocks evaluation when exporting Thread-Index: AQHYlfJFcG0XeA9GO0ig37VUtoS2/g== Date: Tue, 12 Jul 2022 14:08:17 +0000 Message-ID: <87o7xuh19q.fsf@ucl.ac.uk> References: <25293.28342.763993.795868@gargle.gargle.HOWL> In-Reply-To: <25293.28342.763993.795868@gargle.gargle.HOWL> (Alain Cochard's message of "Tue, 12 Jul 2022 14:53:10 +0200") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5edb0e04-0674-441c-071f-08da640ff80e x-ms-traffictypediagnostic: DB9PR01MB9343:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hsrAdvRK1XZtL1de6OJJ8YNrrMzLY6SjTtB/F2JghL2kMYQD5QLu9CaGGzDEUX2DfZN12YXi5GM7kgJMOZYvP4biNdC12TS713E5a0IcOKVdQUV1AAzWlhZWgkce+YNuUqAkRDgLKWbyTDvOQmhcZOtg4bcCpyVYGXW2jY3H1I+rTntMZIO9iOnEMnTGcOg29YMbHhxWSwsnRMPkINwv2o4nc6CCZGMcB/lNioif6xHIDzvjJ+3VYGtH65HOUjT7O5WH1+KvTY/pQQe7+8aH/qRCQ/MGt7YBOy7n8+oBOum3BR+rqnl8XJCV7ecdRWpZBej28qIyFlJvRQHerx6Q5JtRMm219iqNjgsQd5PHyBZ8nS+PkbcXn9N6SMYhpq2h6jfIPy4V0FkpVBDhHm/p44R461kidbb7X4c4n2b62wZ1itqvj5EmREuajynTn6eg49XhHiCnMcPRHdSbh467a7o85ihllRT2F2OPibjlrwEIuyVYbUWl0OIR9kzk6PNV5IDApyvttVYqJjp8C/HjoOcL+b61f83RPLcK03HXTZwuyVz05RvnECs+ao5G1G3w0cbmfKe+nA7A3TTsSChAoB7LROWc48HlpgU0JS9ckrqDxEPxLtZEOskvaCpvjojq/A6cAXdLn24zCsNQbKsvPHobG7bPRPFq/RVG6QtXJA+BObB1G9eghKesQfKmlw6OTDN9mlTdSLj38XlAHQN1W4mFkwsEfIFHUN0eFlySeY7Z7t6G3PiDsc5F+kfXFC42CrO6WYp3cDN/d0V/ODENrwqFw2bAUgT0jxm+5WwNzP+910350H+9kSNDAIMrB7hi x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(39860400002)(136003)(396003)(346002)(366004)(2906002)(38070700005)(122000001)(38100700002)(4744005)(36756003)(5660300002)(26005)(86362001)(64756008)(76116006)(66946007)(8936002)(91956017)(6506007)(6512007)(6916009)(66556008)(2616005)(41300700001)(71200400001)(786003)(83380400001)(316002)(478600001)(6486002)(4326008)(8676002)(66476007)(186003)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?DyW8yro6ZUVRRfgQOUiKOQwiClWQOBqODsHij8I99HVk3QN53HQZed6fzo?= =?iso-8859-1?Q?dg4gHC2C7yLR4u/SkuXNBP1qYXw+p2Vcy1aGA6wYGjqT4ZJUFlEMl5UouT?= =?iso-8859-1?Q?dkeWTB1EAry/1kfJv+/KrgokGE+6G3BQC4zqda1u2T8q3U2zSBKHXsZhrA?= =?iso-8859-1?Q?xxpS38Jb8LPRGiBWncM7/d/6cq7ROaWGA64Q4aaC2RZ9IiY3i5Ew4U2c+C?= =?iso-8859-1?Q?vlBAQsj1oBlBODpsHh+mpvuQT/uudpXuyq+tGwM2i3lhHAk9NjmNcAIbww?= =?iso-8859-1?Q?tGVAjpxrQghKK8VCfL28ejVXlS31sbPDdgJt0WhcyNp2pdpCfKf6YHX9zx?= =?iso-8859-1?Q?Pi1KzrysIeXI8o2wg9YopTmzQOb/IWD8mcW+TH58IEbD5NhR8lZOcmpUtU?= =?iso-8859-1?Q?4jL7oOKmk6800hEufhiJRoJI8Dp/Hx53z73jDQtzk1CdB73e9E+UCAYbdD?= =?iso-8859-1?Q?ipt55LsI4dfZo3PeFuTedXm+j6itOTSmRyKPkVmS5NP0/b5m4Y8yUNI0TD?= =?iso-8859-1?Q?2eS5Swz1c6UMxGoSvNNhbm8twE8uhFl6Vtg/AVykYh7B9IxQkFO6qgoce+?= =?iso-8859-1?Q?J8bmBMCZ+9F7KBGdMpxrNnzD5GCXE7xLlB3V8GjMtjps7R6PnRw10EJlVy?= =?iso-8859-1?Q?Gmm6kid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dF+e?= =?iso-8859-1?Q?Q6nL8p8cUqP/t5ou+tLEhlDbB+mmkqmwR5leagHymtZZayfBxNvO7xTt4n?= =?iso-8859-1?Q?chRPPJvDTn+a+Z1joOje83uH/Y/MJO9EF4?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5edb0e04-0674-441c-071f-08da640ff80e X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jul 2022 14:08:17.4833 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LmUhxOvJ/l6y6aRti86RYEp2tL72UW8HHI2P07dA/o/3G9cu78yj3nfYOjTdukIUv69CfKGRpLawlPODV9Puaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR01MB9343 Received-SPF: pass client-ip=2a01:111:f400:fe0e::72c; envelope-from=e.fraga@ucl.ac.uk; helo=EUR04-VI1-obe.outbound.protection.outlook.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, SPF_HELO_PASS=-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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657635355; 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=UTfQuCZbmPixGEJxkkgBJKd9ccT9E3fHfj6K1T29PBs=; b=dOJkG0DsVlNUB4JzrLaDi0G3LwDqEncvbxFomVGITZzjEr4y6fP9ViHlA8hDu5YdhL1C8K mP85foj20BW24qPisOqoW6/QkwmFxYbAod6suzw9tIx3Q9bi4lZmiAJiakujQk3GfZ2vkO VB8Z3O6q4QF6r6vuZAny5D0vdSJoP1gL/PY3Mpx7tJIv52vxlUxHJnHsxjhnJwIspBbLds bI2PqcRMHjLQA6RJ34wkuOD+heZus/r0yo0xsdKZiv1KkyxDkyoHwwVs9WF5t20klXjhlZ r0J8U0LZwa4SLI79qlSb/TIMJhNKjYMZutXDLqOz71UlnOpr0B46/BzMFTA1Dw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1657635356; a=rsa-sha256; cv=pass; b=qJFhmfRHzUs3A28iAY2hvW9+pQN+3zr427tN1cyTjudoEfJTkBOwmuzLxUx01a9OeGILQm Ccdlu+x0PoQj//Y/PTKvcuh8FBVA01mWPn/vrXUDQNFpABs90texfOUVTF0j5vuaOwAj6w kgBKJXcdgYK/sexpcXh5qOCEmFIk4Tm5ntQDNRhsNlR2u+9YX73g8Ao7zphaiNfQnJg6Pl SirkVn5xjPrGctK/2BRI0vgpX0Vu70FAH+LwVoJYpfPU755jWzgvCrWE+aGbcO1AdSSmgq nGKVwWd5NgA70/DejRIBrrRbsqB+Wr5vj3PH2SsGRpebcYAhq/96TS+kg0lImA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=YxezF2r0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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: -7.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=YxezF2r0; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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: A25CD51C4 X-Spam-Score: -7.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3bgDR2hGxnbP On Tuesday, 12 Jul 2022 at 14:53, Alain.Cochard@unistra.fr wrote: > So far so good. (Well almost: why does '#+RESULTS:' show 'bar' and > not 'foo'? After all, I'm just setting 'my-var', I'm not asking to > display its value. But that's incidental.) It's not incidental. By default, the results of a src block evaluation is the value of the src block which is typically the value returned by the last statement. You can modify this by adding :results output for instance to the begin_src line. > (test 2) Same org file. If I do 'C-c C-e l o', no question is asked, > no '#+RESULTS:' block is inserted, and the resulting pdf file shows: On export, the default is to export the code. If you want the results, you need to add :exports results or if you want both code and results, :exports both --=20 : Eric S Fraga, with org release_9.5.4-613-gb3b17c in Emacs 29.0.50=