From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QFzOFx5oUl8IQQAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 16:15:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SL2lEx5oUl/6SAAAbx9fmQ (envelope-from ) for ; Fri, 04 Sep 2020 16:15:26 +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 E77B49404D2 for ; Fri, 4 Sep 2020 16:15:25 +0000 (UTC) Received: from localhost ([::1]:38998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEEN2-0007V2-Rx for larch@yhetil.org; Fri, 04 Sep 2020 12:15:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEEK0-0002lI-PO for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 12:12:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45399) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEEJz-0004BS-Qv; Fri, 04 Sep 2020 12:12:15 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:43064 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEEJz-0004bu-Ca; Fri, 04 Sep 2020 12:12:15 -0400 Received: by guerry (Postfix, from userid 1000) id 82EA61A60D40; Fri, 4 Sep 2020 18:12:13 +0200 (CEST) From: Bastien To: Alexandre Duret-Lutz Subject: Re: diagnosing SRC blocks with different output on export Organization: GNU References: Date: Fri, 04 Sep 2020 18:12:13 +0200 In-Reply-To: (Alexandre Duret-Lutz's message of "Mon, 27 Jul 2020 14:35:58 +0200") Message-ID: <87363xikrm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 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-Spam-Score: -1.01 X-TUID: 22sV2Es+usJz Hi Alexandre, Alexandre Duret-Lutz writes: > Is there a way to mark certain SRC blocks such that if evaluating them > during export produces a result different from the one stored in the > file, then the export process aborts with an error? Would it be enough to have a new hook called `org-babel-before-insert-result-hook' that would run before inserting ressults in `org-babel-insert-result'? I haven't looked closely, and this requires that the former function knows what to "replace" before replacing it, but seems feasible. Also, I'd like to hear from others if they would use such a hook or if this sounds too overengineered. Thanks, -- Bastien