link-hint.el icon indicating copy to clipboard operation
link-hint.el copied to clipboard

Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode)

Open jsilve24 opened this issue 1 year ago • 0 comments

First off thank you for this wonderful package.

I found a bug that I think needs to be updated on link-hint side (appologies if I am wrong in this).

Brief: I have an org agenda item that contains within the headline an org link. Running link-hint-open-link runs into the following warning:

Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode)

From here: https://www.reddit.com/r/orgmode/comments/17k79vx/strange_error_in_orgagenda/ I gather this is an "annoying" change in org that it user nv-elisp makes it sound like needs to be addressed by package authors. So I am reporting this here.

From my limited investigaion I wonder if a call to org-open-at-point needs to be replaced with org-open-at-point-global?

EDIT: ya that seems to work, going to open a pull request.

Hope this helps, Justin

jsilve24 avatar Dec 20 '23 13:12 jsilve24