gerard.vermeu...@posteo.net writes: >> Have you tried the latest main? > > Yes (just tried again), the minimal function still triggers the > "infinite" list of warnings > "Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org > buffer #<buffer *Org Src oeap.org[ python ]*> (python-mode)" > It is coming from the last org-indent-block call even though the message > just before tells that the mode is derived from org-mode.
What about after https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5f5db3d35 ? -- 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>