"Marten Lienen" <[email protected]> writes: > That is the reason for the after-write-back-hook for my specific case: to > undo the changes, so that visually nothing changes when I save. But maybe it > would be better to have an abnormal hook to post process the buffer string? > Or just have the before hook and run it in a copy of the buffer? Though that > would be confusing.
There is already a procedure preparing contents for write back in a temporary buffer - `org-src--contents-for-write-back-1'. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
