From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mAiuFasJrWBU+QAAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 16:28:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mJZbEasJrWCaJgAA1q6Kng (envelope-from ) for ; Tue, 25 May 2021 14:28:59 +0000 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 B3EDA15B44 for ; Tue, 25 May 2021 16:28:58 +0200 (CEST) Received: from localhost ([::1]:33766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llY3F-0003Bv-Ct for larch@yhetil.org; Tue, 25 May 2021 10:28:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llY2O-0003Bh-Kj for emacs-orgmode@gnu.org; Tue, 25 May 2021 10:28:04 -0400 Received: from se07.route25.eu ([2a05:1500:300:2:4c1:10ff:fe00:1ce]:34563) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llY2L-0007nb-Br for emacs-orgmode@gnu.org; Tue, 25 May 2021 10:28:03 -0400 To: emacs-orgmode@gnu.org References: <2541156.1621358717@apollo2.minshall.org> From: "Lennart C. Karssen" Subject: Re: Global variables in Org mode document with source blocks Message-ID: <9e5e2504-82b1-fd4d-6adb-6c01a94c2e54@karssen.org> Date: Tue, 25 May 2021 16:27:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <2541156.1621358717@apollo2.minshall.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K5iU5XqjkqXQ3uhRoJbqdRg0Gm09goKXG" X-Originating-IP: 185.87.184.57 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.184.57 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.13) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/q2nyQEmhBetAsYhU91WzZPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xiExUbNqvmdkLSOzf1W2Y3z8hkeSqZT0W1YMl0fRDa99cV PSoHm0W/3adFfiYl2nvvF00D4NlLU9GQyR4f7YJF/T4GcPvCLvSpAEEGy7kYxjA4xaKs5cOgbpQu MACSpuI/PGDCiu3095bjBHXzclDEvDPWcAldHgqrH/A+OwNh3R9/DAC5VUXJ2o+/2Ipg3WJSbnd9 lmfn0TJWZal5Ezet/74zHSqk6CcHzqoCKT+E5sE95bF8tPKjnaWlQ6fjTEeg4CZvTGBeutAohO1y UnDCPEg+PVRTiaxPY52n0Pp/86b+Sk5ZBXUgt9/X6plqv8Jl041btgY00t8ZwQGEpPrujd2/KNn9 7NO2ZQWjyOEIHHU8K0rkb5kkiJbpUX9a4LlQef6Ceaw0tyEeHKZjklTreHL+whhAdKuW1jHRpIte tiimkcXcta5lg1BBHrfG9sLNASrPyqZ3YL9752K6v1pQD1e76szsWvBsaS+KViusBg4TfS2su/by ymSuqTyxp/ZExDyRiioQmvGTre37mWh0chGFHjQ6q190o7vmaHflcw7CZmRZCX20iZD6obZiu5uC d5iXYJuZDVz9Fg6INCqeWbdDt2BLh7L8JS+1HaqEmYUZoLNPfATMQSDI9DiIBEIHpf84VwMOuAe0 I/f0DGw/LOjrOwwGI3kKu05JnDlv7nAKet5ATEVyvcD3zonKMui8c+OUp6hNZ2VhCBZKb+A6iPg8 NGrhBSlTYXv+RODacxx47S6kmRdWX28uKywC9DyqLGfzFTB2MyH9CRwc9bs0CiNc2Hq1hnwyc342 lIbFl5HAAxJk5us7mLz1pH6kplIlCkSujm58a/xB+XC1kCc6OfK0uPIgIyYiAZisW72/tr5sn9lh RYaeJ71uUKsFcX4o031Es3qltHMyHIgweqftMMQrbXgpYquub9AstiyqTxLqNG+ExXegOuvKXeeS ueLL/6ALlMPsF2FDHvuw+O8p81eGAJESwE768d6PWzuAUQ== X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a05:1500:300:2:4c1:10ff:fe00:1ce; envelope-from=lennart@karssen.org; helo=se07.route25.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621952938; 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; bh=l2IOEcH9ikWnV133XXsScmew7YGmoafwFF7Z7kNDEgk=; b=C3QDuJZ/CMvyG2kdSfVEqKruKgtaAEYPVUEMXfxaz+r+c2JAQjDPKPP6K8iD9ARV6eQ4A1 CW513zC6cWy/zEFhR/LC0cgoaARzYD1wuweyKOlJ0N+9X3KUOQXjue1PmagT8XMmyxsjx9 LFw/rb4NwGP89Ck/fB1lMW+l2palEn5A2Sx7dulJTVgpKFhrc1u46OPTrE8XvQkkcWJY42 psmeHBzNsuzwUbJLSKLgwf1nQAtjomwF9l6MMnU3/b70bn+QuKEHKmTbuIp2rYWKJkPSi9 Bvt5LBKWNUEhGwkdsNpF5jMkoqOTVDmFwYU8wHI+llKTk+pw8/FMRyEr3gs9Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621952938; a=rsa-sha256; cv=none; b=aiW4kJ9nu0x067yFj9c97YCVHrMoP/nJA611DwXSrHVSpfQbYN3zLvvlanN5NL2BcAeucm ZifFrAzBm0bhHKvTle4bnfYzwVuk0Ksxl3+lH1PJ0uph2o9m5N1/rc9Xhjb8yT4i4/t0zY 2OtorsaqYKQqhbN8+mbI4kQOlAxtVecXdJG27feWdZ04LlR6apcbgCIa95aL1fXbEFRSme MCDyiZ/RxKPPBlYa/SVyv1B+qGYsNANalAyKHudGEeuJtQXFMwmBRMBCDW5piD9Hvg+ZiZ maQ+bXvnaQe1295De+ljItCMoaaGqu/lYZH4tfW/G+Cu88Ue5d7VVBc8afx1pA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B3EDA15B44 X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: PgiQ+/xSq/er This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --K5iU5XqjkqXQ3uhRoJbqdRg0Gm09goKXG Content-Type: multipart/mixed; boundary="YgjWcHZ7nEb8jmpuChZeNThyeqxZtevdF"; protected-headers="v1" From: "Lennart C. Karssen" To: emacs-orgmode@gnu.org Message-ID: <9e5e2504-82b1-fd4d-6adb-6c01a94c2e54@karssen.org> Subject: Re: Global variables in Org mode document with source blocks References: <2541156.1621358717@apollo2.minshall.org> In-Reply-To: <2541156.1621358717@apollo2.minshall.org> --YgjWcHZ7nEb8jmpuChZeNThyeqxZtevdF Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi Greg, On 18-05-2021 19:25, Greg Minshall wrote: > Lennart, >=20 > John's idea seems good. also, you could generate a separate RESULT for= > each language, then :var each language's "failed" RESULT into your bash= > block and fail if any of them are set? The main problem I see with that solution is that my code blocks print raw Org code/text, e.g. tables of results or a paragraph of text that depends on the computations done in the code blocks. I haven't tried, but passing and parsing those multiline RESULT blocks into a final 'conclusion' block is probably not very easy. I ended up going for a slightly adapted version of John's first idea: Adding a # failure-CODE line to any block that fails. That line is ignored on export to PDF, but can still be counted in a final code block that searches the buffer for matching regexps. Thanks for your input. Lennart. >=20 > cheers, Greg >=20 --=20 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* L.C. Karssen 's-Hertogenbosch The Netherlands lennart@karssen.org http://blog.karssen.org GPG key ID: A88F554A -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- --YgjWcHZ7nEb8jmpuChZeNThyeqxZtevdF-- --K5iU5XqjkqXQ3uhRoJbqdRg0Gm09goKXG Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABEIACMWIQQyBENSov4Y8H9uObIgAxQL2pzVCQUCYK0JZgUDAAAAAAAKCRAgAxQL2pzVCaKe AQCUFqD5UvxmwuiXxei4ykAmcyiMueJl3W28fMvhCSuR6wD/e32XWk7VQJULdRRKkeJXmZ2oQVMz ww2/FpnPSv3Tp/k= =+6hv -----END PGP SIGNATURE----- --K5iU5XqjkqXQ3uhRoJbqdRg0Gm09goKXG--