Ruijie Yu <rui...@netyu.xyz> writes: > Thanks. Can you make a full patch from the current main branch to your > changes, with a commit message and so on? This would help reviewers to > look at the full picture of what are modified. Take a look at the > manpage git-format-patch(1) if you aren't sure how to do it.
I'm at the moment patching the =org-babel-tangle= function, to act appropriately to the =:tangle-sync <action>= requests. It's harder than I thought, because the way the function currently works is to populate a temporary buffer with source block contents and then to overwrite the destination tangle file, i.e. it is unaware of the tangled files contents during processing. This is efficient, but works anathema to syncing changes in the opposite direction, i.e. when a block requests =:tangle-sync import=. I'm currently doing a small rewrite of the function that populates a list of comments in the tangled file (restricted to stemming from the source org file), and then either populates this temporary buffer with the org mode source block contents or with the already tangled contents (when "import" is given for that block). I will submit a full patch with these changes (with properly detailed commit messages) from the main branch in the next few days.