Cletip Cletip <clement020...@gmail.com> writes: > The Issue: > I have an Org file, test.org, from which I tangle code blocks into test.py. > The complication arises because test.py is a symbolic link. Each time I > perform the tangling operation, the symbolic link is unfortunately > overwritten. > ... > Proposed Solution: > I've identified a potential fix that involves a minor adjustment in the > ob-tangle.el file: > > Original line (259): > > (let ((file-name (car by-fn))) > > Modified line: > > (let ((file-name (file-truename (car by-fn)))) > > While this solution appears effective at first glance, I haven't > extensively tested all edge cases. I would greatly appreciate your insights > on whether this is a robust solution ^^.
Looks reasonable. Max, do you see any pitfalls using `file-truename'? -- Ihor Radchenko // yantar92, Org mode contributor, 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>