Hi Igor, > 5. emacs -Q /path/to/README.org > 6. Open the second relative file link
When I do this then when I push `C-x C-f' I see that I'm in the non-symlinked path. And that shows up in the source block evaluation as well. In fact even if I do ``` emacs -Q /tmp/org-publish-symlink-repro/shortcut/something/index.org ``` I end up in the "real" directory. I'm not sure what's governing this behavior in emacs. What I suspect now is the culprit is that the linked directory is on a different BTRFS subvolume. In my original case. Can you try changing the line ``` (let ((base-dir default-directory)) ``` to ``` (let ((base-dir "/tmp/org-publish-symlink-repro/shortcut/something/")) ``` and see what happens then? BR, Bence On Mon, Apr 17, 2023 at 1:04 PM Ihor Radchenko <yanta...@posteo.net> wrote: > > Bence Fábián <beg...@gmail.com> writes: > > > When performing an `org-publish' if the `:base-directory' property > > contians a symlink in its path, then the `theindex.inc' file is not > > populated. > > > > I created a repo to help reproduce the bug: > > https://github.com/bencef/org-publish-symlink-repro > > I tried to reproduce starting from emacs -Q, and I am unable to. > > I did > 1. cd /tmp > 2. git clone https://github.com/bencef/org-publish-symlink-repro > 3. cd org-publish-symlink-repro > 4. ln -sf /tmp/org-publish-symlink-repro/long/path/to ./shortcut > 5. emacs -Q /path/to/README.org > 6. Open the second relative file link > 7. C-c C-e C-f P x <TAB> <RET> > > All the files are published correctly, including the index. > > -- > 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>