On 2023-12-08 19:01 GMT, Ihor Radchenko wrote: > Kenny Ballou writes: > >> I'm currently struggling through modifying it to work with >> `org-store-link'. Something, save-excursion -> org-clock-goto -> >> org-store-link -> org-insert-link is what I'm trying for now, but that's >> not quite working. I'll come back to this in a few hours. > > The last step is unnecessary. You may just examine `org-stored-links' > (documented in the docstring of `org-store-link') or > `org-store-link-plist' (undocumented, but containing more info and also > used by `org-capture-fill-template'). I ended up using `org-store-link-plist'. For some reason that I don't understand, the `save-excursion' -> `org-store-link' was not updating `org-stored-links'. Similarly, I had to use `save-window-excursion' or the `org-clock-goto' would really break things. If there's a better approach for getting the link, I'm all ears.