Nikolay Kudryavtsev <nikolay.kudryavt...@gmail.com> writes: > Recently I reworked some of my task workflows and now I have an agenda > view that's all web links. Opening those with mouse is pretty natural. > > But every time I do, I get this warning: > > Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org > buffer #<buffer *Org Agenda*> (org-agenda-mode) > > I sort of understand why this warning got introduced, but I think that > mouse clicking on links in agenda is a pretty normal usage of org, so I > believe that this warning should be suppressed in this case.
Thanks for reporting! This is an annoying one. The old behavior was erroneous - using `org-open-at-point' may actually fail in some agenda buffers. For example, one can try to M-x read-only-mode and then insert #+begin_src conf line before the link and #+end_src after. However, properly fixing it is not trivial - we will need some totally new API for links outside Org mode. For the time being, I suppressed the warning when clicking on links. It will at least fix the regression. Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=dfd6cc51f5 -- 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>