From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 4FM8MOaiEGK13gAAgWs5BA (envelope-from ) for ; Sat, 19 Feb 2022 08:57:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gAAgLeaiEGJDPAEAauVa8A (envelope-from ) for ; Sat, 19 Feb 2022 08:57:26 +0100 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 66D091CCB8 for ; Sat, 19 Feb 2022 08:57:26 +0100 (CET) Received: from localhost ([::1]:41760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLKcP-0005sH-7Y for larch@yhetil.org; Sat, 19 Feb 2022 02:57:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLKaG-0005rt-SQ for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 02:55:12 -0500 Received: from [2a00:1450:4864:20::533] (port=44664 helo=mail-ed1-x533.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLKZq-0004hV-V1 for emacs-orgmode@gnu.org; Sat, 19 Feb 2022 02:55:11 -0500 Received: by mail-ed1-x533.google.com with SMTP id x5so19214848edd.11 for ; Fri, 18 Feb 2022 23:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=peeKgBBRHfzZzHrSW1EVMumllBDw8AGuET26IGKbelM=; b=OecoWSmFF+7OJypr8tX55qmN37WGTg2K4EMX4USCK+DfgIRTCwORXJeoQylVinbc/1 okQrLOdo5j4g5Poy9lSuJzgToNi2ic+663LNm6UmLkBGlxyBqJ/szFnEcjQcFvDaSi97 D+jSd7q4WYpL0v5rh+HyTwncFHa4x9EPn68uHLBaEzmgwwAiPpfx8OM0tNzdqo4g7dTY fWBnWj2I6skDrK/k7BROpEfxrb53U5uS95gMtdj6XZKLKMCIwhAhR4b/MpzylohneCT+ leEfh470/SznnjxhmZSlFV1I66sElyIIuqg/nyMN8bu3FirHjDYF0JTi8ddqskFMiCGM Seaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=peeKgBBRHfzZzHrSW1EVMumllBDw8AGuET26IGKbelM=; b=DKpH244K3GkY/DtKkmrx3XCxG6vUp/kj1xi6Ln/IumaBR4XP6IEhZ9Ex2/uU79KlNE NqOkCiIGjr6p3LmWvgQKgCM95AMke34S1Q3E4rzP/8iB2nf86JDIniIuXToEAGOCuQmF V5/whvnRi4s2IdOkL8mfgqfz3yKAsr3Q55hb055k68DO/YDlLUEXibC2MNJ0gXX9Cz/J PYenutMuTH99ZLCooqVj4QPqOstliKMfTBarJzx2KzbNr9F78ww4gni9Lc5EUmpeXYSz +LG7sqlvJ21dN9rOP4lWveeQb2JTAwn5dFhnST+c26XjF86HfEQy40KVPYODO5yDLVJA DKjA== X-Gm-Message-State: AOAM532DS+sEEGTsbVPFQN97rhZyFiSHTcz1IrMYTwXHleT1jqEW4eID aX8BtrVy6d1UWeLx2EOWd8YX3dCaaE4= X-Google-Smtp-Source: ABdhPJyiryQTAWlnErBIjcU/VYorq6CM45Dsb2c2U/6302qtNB+fkpqDt2YA2pF+ayympO/RcA6Mxw== X-Received: by 2002:a50:8e44:0:b0:40f:d71f:bdf5 with SMTP id 4-20020a508e44000000b0040fd71fbdf5mr11901702edx.166.1645257283869; Fri, 18 Feb 2022 23:54:43 -0800 (PST) Received: from localhost ([2a02:908:1d0:8d20:d4e3:87a8:ad14:a57b]) by smtp.gmail.com with ESMTPSA id 5sm2985283eji.192.2022.02.18.23.54.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 23:54:43 -0800 (PST) From: Jeremie Juste To: Org Mode List Subject: Re: processing of babel blocks and select_tags References: <87wnhss7z4.fsf@ucl.ac.uk> Date: Sat, 19 Feb 2022 08:54:42 +0100 In-Reply-To: <87wnhss7z4.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 18 Feb 2022 11:57:19 +0000") Message-ID: <87iltbffzx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::533 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=jeremiejuste@gmail.com; helo=mail-ed1-x533.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645257446; 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=peeKgBBRHfzZzHrSW1EVMumllBDw8AGuET26IGKbelM=; b=NPsHADQ/167sVWPyFhqwiLHxZAec63q2SiIJpmHajrnqDbnOmrgSZPiqaBzWtfE8iAt/gs sOdvtAojcmTcdCMEcmWtD/ruNzZtDr3l7Pku6Gv9iMtHHMyZ5Xz+z0QrSZIYCeDO8VpN6e qshJ4XkTExULP2RLVRoW0TsYMKGHy3BxA24x8MyQCx5whTMQVqzPPCZKB/cLLFFif0U3Jh xRmQSxwdTJkPondSs6NMfSBxO8MOsrvE3sYhdZ7AmafeQ7r+H8XogSc79qyEMEFfH1s8u/ JoEfAeQd6Jb5o1j/kN0h7fbkg2exRZr1Vw3SnzwaHkOPnlq8blalN0eszZLOVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645257446; a=rsa-sha256; cv=none; b=MGkXQlZS5KXEuRONrfz8JEhR5fJS19AmErLgP6iQ/K/MkkfuPuad7Ma4mPVynaKyj81D5F I3p6hJlSe+81/5q1H3srTmFOGdVvyyAdXVDOfnFnwbUQwsvbW2uslz9943JxvnWLHPLEAJ S/fX4BkvrkOc5IcMg6CThvHvQlrenQQ3dHKOIiifsy6L3cJTKUabCZuD86Ufgo/ES8xYf1 DEUf13pF0Qlk+bCIx2cJwtLMnWchFSKyxSTdTWm7jrPoDQL0hlp0wRTi9NYdgr8SWNU7BF cB3vBNHZgmQ+CJd1dHn90mWescA+pctzymZ4b7G+GTe2FKytno3/YLvXNVLODw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OecoWSmF; 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: -4.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OecoWSmF; 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: 66D091CCB8 X-Spam-Score: -4.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: HJc5lY6soWzf Hello Eric, On Friday, 18 Feb 2022 at 11:57, Eric S Fraga wrote: > TL;DR: can I have org completely ignore src blocks in non-selected > sections during export without using COMMENT? If I change eval: no_export to :eval no, Only the =Description= section is evaluated and exported. That said, I have often search in vain of a way of using tags to prevent evaualtion of code chuck. I have resorted to use either property at the heading or file level to control the execution of code chunks. ** Subheading :PROPERTIES: :header-args:julia: :eval no :END: Another option would be to store what is needed in as a variable in a session and use =:eval no= before exporting, but it might not be very practical for a book. I have a small helper function that toggle eval yes or no at the file level, if it is of any help. HTH, Jeremie * toggle eval yes. (defun toggle-global-eval () "toggle :eval yes :evalno " (interactive) (save-excursion (beginning-of-buffer) (search-forward-regexp ":eval ") (kill-word 1) (setq wd (car kill-ring)) (if (equal "yes" wd) (insert "no") (insert "yes")) (org-ctrl-c-ctrl-c)) (save-buffer) (message "global :eval was %s" wd) ) * file tag.org #+title: org babel and select tags #+select_tags: current * Introduction This section has some code that should not be evaluated on export. #+name: introblock #+begin_src julia :eval no a = [1, 2, 3] #+end_src * Description :current: I am writing this section right now. * Conclusions This will be worked on later. #+name: conclusionblock #+begin_src julia :eval no a = [4, 5, 6] #+end_src