"Marten Lienen" <[email protected]> writes: > @@ -1433,6 +1450,8 @@ defun org-edit-src-save > "Save parent buffer with current state source-code buffer." > (interactive) > (unless (org-src-edit-buffer-p) (user-error "Not in a sub-editing buffer")) > + (with-demoted-errors "org-src-before-write-back-hook hook error: %S" > + (run-hooks 'org-src-before-write-back-hook)) > (set-buffer-modified-p nil) > (let ((write-back-buf (generate-new-buffer "*org-src-write-back*"))
A quick note - if the hook is run inside src-edit-buffer, any edits made by the hook functions will remain in the buffer, which might not be desired. (I am just passing by without reviewing the thread and patch carefully.) -- 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>
