Lei Zhe <lzhe...@gmail.com> writes: > Sorry, it was [[attachment:example.pdf::2]]. > The lint for [[file:example.pdf::2]] is fine, since > org-element-context returns the raw path without the search option. > However, this is not the case for [[attachment:example.pdf::2]].
I can reproduce this one. Applied, onto bugfix, with minor amendments after adding a proper commit message. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c54340b8a8 -- Ihor Radchenko // yantar92, Org mode maintainer, 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>