Subject: bug#57972: 29.0.50; Autoloaded function raises (void-function org-element-cache-reset) when called within major-mode body

From: Bastien <[email-masked]>
Date: Sun, 25 Sep 2022 04:43:47 +0200

Eli Zaretskii <[email-masked]> writes:

>   (or (eq this-command 'eval-buffer)  <<<<<<<<<<<<<<<<<<<<<
>
> explicitly avoids loading org-loaddefs.el if org.el was loaded via
> eval-buffer.

I think this was the reason for this line, yes.
If it is causing problem, let's remove it.

-- 
 Bastien