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?