Hello Ihor, Yes, it works perfectly. Thank you very much for the patch. I don't think I would have been able to do it properly with my limited knowledge of elisp. Gilles ----- Mail original ----- > De: "Ihor Radchenko" > À: "Gilles Marait" > Cc: "emacs-orgmode" , "emmanuel agullo" > Envoyé: Dimanche 15 Décembre 2024 14:55:44 > Objet: Re: Change behavior of "org-babel-tangle-publish" from org 9.6 to 9.7 -- deleting source files and not tangling > properly > Ihor Radchenko writes: > >> IMHO, it makes more sense to preserve _and also document_ (in the >> docstring) the old behavior. We just need to make sure that the bug >> fixed in 478576749d does not re-surface - when publishing directory is >> "." the old code failed trying to copy tangled file into self. >> >> I think that we can simply call `org-publish-attachment' on every >> tangled file in `org-babel-tangle-publish' - `org-publish-attachment' >> takes care about the situation when the tangled file is already in the >> publishing dir. > > Gilles, may you please check if the attached patch works for you? > > > > [Documents > texte:0001-org-babel-tangle-publish-Keep-the-original-tangled-f.patch] > > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at . > Support Org development at , > or support my work at