From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 WKUdIYfPz2L5SAEAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 10:10:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2N/0IIfPz2L1BgEAauVa8A (envelope-from ) for ; Thu, 14 Jul 2022 10:10:47 +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 DEA6C2FDFE for ; Thu, 14 Jul 2022 10:10:46 +0200 (CEST) Received: from localhost ([::1]:60290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBtvp-0000XI-TQ for larch@yhetil.org; Thu, 14 Jul 2022 04:10:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBtuj-0000Wc-AM for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 04:09:37 -0400 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]:39434) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBtue-0002aB-RT for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 04:09:36 -0400 Received: from zmtaauth04.partage.renater.fr (zmtaauth04.partage.renater.fr [194.254.241.26]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 8E601BFC48; Thu, 14 Jul 2022 10:09:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTP id 7EC3E1C0113; Thu, 14 Jul 2022 10:09:26 +0200 (CEST) Received: from zmtaauth04.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth04.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HVDoiU8yFIry; Thu, 14 Jul 2022 10:09:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTP id 3872A1C019D; Thu, 14 Jul 2022 10:09:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth04.partage.renater.fr 3872A1C019D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1657786166; bh=y+37q92S3A44/kTUIJ5ZTM3dSR3CCzHFRWOjpe4MpR0=; h=MIME-Version:Message-ID:Date:From:To; b=tBcYM+nRpS7JipdY1o3O/PB8l5Hkyj+6DY4eMGhHqrwZkWy+s/fybJCgzrSLcd46e cwygPiTJ47NteIxiuJPcWO7vvV+Y0+QJSRrXJ+q5YTef3teLCKlc0b843s2NtBDa16 uI+YsFaD7aaF7j9uTGEDmIMm6Ak+VJCjliGy4VMx6IpqcbNkyRDI/q03nSZuSE0IeO Hf+US5a731sS+ymudWKYW2m3No4J49nqWS9FMm9OFz7GftmhZ+xAcstUp2NVi1f1T7 1xeoKMLPtKw4H3hXiNbH3WMBEyKBp0bHo1eF5Oca8CI/17YWsIUdtPYCNmxdWskKYb zhJ2x6d3v9Y7w== X-Virus-Scanned: amavisd-new at zmtaauth04.partage.renater.fr Received: from zmtaauth04.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth04.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9iTfQCxsXCjM; Thu, 14 Jul 2022 10:09:26 +0200 (CEST) Received: from 90.33.191.238 (unknown [194.254.241.250]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTPA id C7DE51C0113; Thu, 14 Jul 2022 10:09:25 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25295.53045.863530.838179@gargle.gargle.HOWL> Date: Thu, 14 Jul 2022 10:09:25 +0200 From: Alain.Cochard@unistra.fr To: "Fraga, Eric" Cc: "Alain.Cochard@unistra.fr" , Org Mode List , Greg Minshall Subject: Re: Confused about source code blocks evaluation when exporting In-Reply-To: <87o7xsyxzr.fsf@ucl.ac.uk> References: <25293.28342.763993.795868@gargle.gargle.HOWL> <25293.58381.803841.645075@gargle.gargle.HOWL> <87v8s12sbh.fsf@ucl.ac.uk> <25295.13284.191751.78706@gargle.gargle.HOWL> <87o7xsyxzr.fsf@ucl.ac.uk> X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejkedguddvlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeggtgfgkfffhffvvefujghfofhrsehtqhertdertddunecuhfhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhenucggtffrrghtthgvrhhnpedtvefftdeuhfeifeevgeejhffffffftdduvdegfeduudfghfetgfeuffdvhfffgeenucfkphepudelgedrvdehgedrvdeguddrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleegrddvheegrddvgedurddvhedtpdhhvghlohepledtrdeffedrudeluddrvdefkedpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepgedprhgtphhtthhopehmihhnshhhrghllhesuhhmihgthhdrvgguuhdprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhgpdhrtghpthhtoheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrpdhrtghpthhtohepvgdrfhhrrghgrgesuhgtlhdrrggtrdhukh Received-SPF: pass client-ip=194.254.241.31; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.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, NICE_REPLY_A=-0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Reply-To: alain.cochard@unistra.fr 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=1657786247; h=from:from:sender:sender:reply-to: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=y+37q92S3A44/kTUIJ5ZTM3dSR3CCzHFRWOjpe4MpR0=; b=mYqShUkqUmyXLgm4J9GpyMimN5tfncW6jPZtLpDJ7JCpPXt9q4nF1WLrAALHOqBjsNWG55 QFL7u4q0HxFt+l7EmOE+U05rO4T8k74cPI2q+iiKiqEyMR7mTsA3VspCSH4vZXRbMxoTk2 72B3EqAvnw/RGvAUdsooEeEtVwPrPlE8UvDWWQGVoGZrIaZ7WnbfARXbjn2+2RxKItfWjO NkVALmT00/K+IoNAkDCV5MEAjc/JTQYOANUr94xjPZVAbS3mRsf/WjLCyEdzd/G14MyOLB DwkIN4tnl8Q5OdYF/fnnVz+30ibD1k5uleceDUxh/36n8TY6I8kOqpidA3GGLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657786247; a=rsa-sha256; cv=none; b=mvgkwwbRA6FNv/NUgAg5dM2gO3/j4P3a99NJkt/qv4mDHDmSzNFmJrNCaYiHy40gMrFV8/ LyPgqflJNd315yvfii70jYWcXSR+SSNm3HKKu8PzyTtwsnAHwtRkwsaZSG8HAOwuVx1HK+ sHbQKiIVgyGFaJEbfYuBq4EE2yxYGQGH6R2o/iPTjypCAAAzxjmph7607GHXYhMygcHii+ +63xwj4LQA7vWToVae8/JxRdPzo3waVZQntuEd/daO0WB2l27xTwH7ydc/E0vVsFhaKXmt gOoFjHm3hB4C2FbyZTICNp4zStCT3/mZpXGMMUoDZ5So09VhBmu/q5pVf/wGIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=tBcYM+nR; 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: -5.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=tBcYM+nR; 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: DEA6C2FDFE X-Spam-Score: -5.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: TbVqMglkg0kT Fraga, Eric writes on Thu 14 Jul 2022 07:06: > On Wednesday, 13 Jul 2022 at 23:06, Alain.Cochard@unistra.fr wrote: > > Now I start again, but I do 'C-c C-e l o' instead. I am =5Fnot=5F= asked > > whether I want to evaluate, and the 'foo' file is still there. Bu= t > > the pdf file does display > > > > rm -f foo > > > > Does this still qualify as "evaluation"=3F I thought not, hence m= y > > conclusion that evaluation was not performed by default upon expor= t, > > but you made me doubt it... >=20 > If you do not specify either ":exports results" or ":exports both", > then the exporter doesn't output the results and hence there is no > need to evaluate the src block. Why "there is no need"=3F It was not a theoretical issue for me. Without latexmk installed, I had to setq a different value for org-latex-pdf-process depending on whether I used #+cite=5Fexport: natbib plainnat or #+cite=5Fexport: biblatex Sure, I can do this is in the emacs init file but then I don't how any better than to restart emacs. So I tried to do it on the fly with an src block of the form #+begin=5Fsrc emacs-lisp=20 (setq org-latex-pdf-process ) #+end=5Fsrc which I want to be evaluated during export but I want neither the code not its results to appear on the exported pdf file. Maybe there are smarter ways to achieve this goal, but it was an opportunity for me anyway to start understanding this evaluation business. There are other instances where this could be useful: evaluate some shell block for deleting a file on the system before evaluating some fortran code depending on this code. > The manual is indeed a bit vague about this so suggestions for > improvements are always welcome. How about changing Org evaluates source code blocks in an Org file during export. to Org generally evaluates source code blocks in an Org file during export. But ideally it would be expanded, perhaps with something like "depending on the value of some header arguments (see xxx)". Also, how about a 'yes' option to the eval header argument to call for unconditional evaluation=3F Sorry if this would not make sense, I'm trying... Thank you all and best wishes. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]