From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GGhlATaH9WW7mgAA62LTzQ:P1 (envelope-from ) for ; Sat, 16 Mar 2024 12:49:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GGhlATaH9WW7mgAA62LTzQ (envelope-from ) for ; Sat, 16 Mar 2024 12:49:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YeNiOBTY; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710589749; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DH90Esp8BwS2ZpmdQbixgVssQlX2X0A+U7SiNQd24ew=; b=oHz49dR79a11xtwPV300OOBqFmT/Mcpbd+28FloRSvKAHRthdmvunKvmc9mGdtIsyQCRar b74UDqU0trrDpUzmrg7FqEMngOpHNyLo8qqv20tiIcJfpfUx1/woi3vIXenLcRl+5uPDpU HQ5kSvsWOUVMfqkhoy7nSEVP2KrVXPSMdMaBG+R9tYPE+xtac/AvmVPJUhOjtpZPoVz/eQ Ez7NB0FfnBmnGN5a3MGsWNxTmfGHoY6rk+zh106zRhw3mIkVKokVLcBRtPpAYYRfbiAI3S xJcNBT0gKprTXUUA8EJPb38jUJY/umhowTXVDq6alW8IiLn2KZP3I7fp9Kx/TQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YeNiOBTY; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710589749; a=rsa-sha256; cv=none; b=Bcv6WnXEOV/1BiPRivp3bxAHynt1zgTr706WP5MXkplHZ5Oo2jSkDhWsf2CNsqgUdgMBnQ Y/P+yveqbNtiYKqfSLWUZ4pNCWRjBICxTNeNaakI3c6tcuIYNHx+EiFqDGiiRon+2b01BD gzXsZgDrVeP1c7UtymEGtMvwovkxixpTvEfs/IgJpTpFu1aDkCOzB97kSK8jjf9VK1plFY yeCtgMUNyxqIa82G5+8Db6G9M7JizrEqKi0Ql8XQdm/way41dK4hI+oiDeijd0ugfr0d2Q BxvIMSxmvwGqMrJZVacO7WZ19C1GRKYEFcjFZgEeor2n7arz2RwgxtRlkqWD3g== 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 842A511E1A for ; Sat, 16 Mar 2024 12:49:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlSWb-0004L2-8p; Sat, 16 Mar 2024 07:48:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlSWX-0004Kj-FQ for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 07:48:26 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlSWR-0006eK-SV for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 07:48:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 62096240104 for ; Sat, 16 Mar 2024 12:48:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710589696; bh=L/fbZXwnllLRWePj/5VhtqLOTI5fnfTvIJXKlgUu1Rg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=YeNiOBTYJgLW1vn49g9nyQHwNsz1CG0gxxXvJwlVYd0QuE8RYmoaDBdUiKjx+CV0Y WpO3HYZPvUmKOjjLVZ7Er7ig03+e5hcMJhLbzoyl51zG5jl+iUR9fTKJHcb74OS/Rv mxqrcGvkrLs3JanG87SP2169KraUjTztCo+agbSUGM3PgmlJK6TZk9j8xV6cIxsimQ xTlbn8f/8F23jK10AcHq6WRMC9/BcPqr+190qqnPuZU4JmHZ5go7aKJ9u4Imvo8214 xgLH7mw1Ki+avknDN7CfNCzc5NWZ+2O8jTfZhPUvmiHEv09p48FK1ch2muLOw5+DWn wtWT3BpaFeIiA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TxfWg5NStz6tw2; Sat, 16 Mar 2024 12:48:15 +0100 (CET) From: Ihor Radchenko To: Damien Cassou Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] [PATCH] org-babel-execute-buffer: Prevent executing non-code blocks [9.6.20 ( @ /home/cassou/.emacs.d/lib/org/lisp/)] In-Reply-To: <87h6h65ulq.fsf@cassou.me> References: <87zfv7kg0p.fsf@cassou.me> <87h6hbej82.fsf@localhost> <8734sv5fbt.fsf@cassou.me> <874jdbjga3.fsf@localhost> <87h6h65ulq.fsf@cassou.me> Date: Sat, 16 Mar 2024 11:48:12 +0000 Message-ID: <87edcaieir.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.42 X-Spam-Score: -7.42 X-Migadu-Queue-Id: 842A511E1A X-TUID: lFI6EhfleHn6 Damien Cassou writes: > If I understand correctly, you are saying that it is better to let the > command crash as soon as possible instead of letting it execute > potentially problematic code because some previous block has not been > executed. I think it makes perfect sense. I'm now convinced that my > patch is not desirable. Feel free to close the issue. Yup, you understand correctly. Although, we previously discussed a similar issue with bibtex blocks in https://list.orgmode.org/87ilvnx29d.fsf@kyleam.com/, but the proposed approach to solve the issue was different. > Just because I didn't know it exists. Thank you for telling me. I have > now added it to all my code blocks generating non-executable results > using the :wrap keyword like this: > > #+name: show-tree > #+begin_src sh :exports both :results output drawer :tangle yes :wrap "SRC text :eval no" > echo foo > #+end_src > > #+RESULTS: show-tree > #+begin_SRC text :eval no > foo > #+end_SRC > > It works very well, thanks! Would you say this is how you would have > done it as well or is there a better way? Yes. You can add #+property: header-args:text :eval no on top of your Org file or add (setq org-babel-default-header-args:text '((:eval . "no"))) to your config. See https://orgmode.org/manual/Using-Header-Arguments.html -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at