emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diagnosing SRC blocks with different output on export


From: Bastien
Subject: Re: diagnosing SRC blocks with different output on export
Date: Fri, 04 Sep 2020 18:12:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Alexandre,

Alexandre Duret-Lutz <adl@lrde.epita.fr> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]