Nicolas Girard <girard.nico...@gmail.com> writes:

>> `org-babel-exp-non-block-elements' and `org-babel-exp-process-buffer'
>> could probably check if code still exists before trying to remove (and
>> replace) it.
>>
>
> Yeah, I don't know how much work it would represent but it seems much
> more appropriate that my hack-ish solution.

It might be tricky to set up. I'm not even sure Babel is meant for these
cases (where evaluating code removes its source).

Another possibility is to have a "side-effect only" behaviour for export
where code block is not removed nor replaced. ":exports none" could be
a candidate for this. Maybe Eric Schulte has an opinion on it.


Regards,

-- 
Nicolas Goaziou

Reply via email to