FYI I still get this "cannot be used in a non-Org buffer" error displayed 
whenever a new release of Org comes out. Then I have to "fix" it by swapping 
display-warning with message in org-element.el l.8477.   I'm willing to try to 
help track down the code that's calling org-element-at-point incorrectly.  
Might take a while for me - love Emacs, not well versed in debugging it and 
packages.

Off the top of my head I see if when [re]building my agenda, and with org-roam 
somehow.  I suspect it maybe org-roam (or my configuration of it) related, or 
in general my setup.  

I know that's nothing to go on for you, I just wanted to let you know, Mark 
isn't the only one seeing that message unexpectedly.  (Maybe not the same 
cause.)

Rob

?
Rob Davenport
Consulting R&D Engineer
-----Original Message-----
From: emacs-orgmode-bounces+rob.davenport=us.abb....@gnu.org 
<emacs-orgmode-bounces+rob.davenport=us.abb....@gnu.org> On Behalf Of Ihor 
Radchenko
Sent: Monday, April 14, 2025 2:35 PM
To: Mark Barton <mbarto...@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Warning (org-element): ‘org-element-at-point’ cannot be used 
in non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode) [9.7.11 
(release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

BeSecure!       This email comes from outside of ABB. Make sure you verify the 
sender before clicking any links or downloading/opening attachments.
If this email looks suspicious, report it by clicking 'Report Phishing' button 
in Outlook or raising a ticket on MyIS.


Ihor Radchenko <yanta...@posteo.net> writes:

> Ihor Radchenko <yanta...@posteo.net> writes:
>
>> There is a reason why I asked to debug display-warning rather than 
>> org-element-at-point itself. What you need to catch is what is 
>> calling org-element-at-point in inappropriate place.
>
> It has been a month.
> May I know if you managed to investigate further?

I assume that the problem did not re-surface.
Canceled.

--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at 
<https://urldefense.com/v3/__https://orgmode.org/__;!!NLW3fF9v!Ja9PbDWtEMZm0La3IjTTKXqnpDZRP_ui-RQiMUF9SVSrtpDkeoSjse5FeOyzdv7ENtJic67TT_fmA36FrUClyg$
 >.
Support Org development at 
<https://urldefense.com/v3/__https://liberapay.com/org-mode__;!!NLW3fF9v!Ja9PbDWtEMZm0La3IjTTKXqnpDZRP_ui-RQiMUF9SVSrtpDkeoSjse5FeOyzdv7ENtJic67TT_fmA34xYvqEPg$
 >, or support my work at 
<https://urldefense.com/v3/__https://liberapay.com/yantar92__;!!NLW3fF9v!Ja9PbDWtEMZm0La3IjTTKXqnpDZRP_ui-RQiMUF9SVSrtpDkeoSjse5FeOyzdv7ENtJic67TT_fmA35NWzH7JA$
 >


Reply via email to