Hi Igor, Thanks for your answer. Yes, with org 9.6, I end up with two code.cpp as your said, one in "." and one in "src".
I think the line you're pointing to is indeed the problem ----- Mail original ----- > De: "Ihor Radchenko" <yanta...@posteo.net> > À: "Gilles Marait" <gilles.mar...@inria.fr> > Cc: "emacs-orgmode" <emacs-orgmode@gnu.org>, "emmanuel agullo" > <emmanuel.agu...@inria.fr> > Envoyé: Lundi 9 Septembre 2024 19:40:27 > Objet: Re: Change behavior of "org-babel-tangle-publish" from org 9.6 to 9.7 > -- deleting source files and not tangling > properly > Gilles Marait <gilles.mar...@inria.fr> writes: > >> I encountered a change of behavior since org version 9.7 than removes >> my source files instead of tangling them at the correct location, using >> "org-babel-tangle-publish". >> >> I have not found in the changelog any description of something that >> could explain this change, so I report it here. >> ... > > I suspect that the regression is after > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=478576749d > > May I know if you end up with _two_ code.cpp files in Org 9.6 - one in > "." directory and one in src/ directory? > > -- > 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>