noctuid / link-hint.el

Pentadactyl-like Link Hinting in Emacs with Avy
GNU General Public License v3.0
160 stars 22 forks source link

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

Open jsilve24 opened 8 months ago

jsilve24 commented 8 months ago

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