|
From: | gerard . vermeulen |
Subject: | Re: [PATCH] org-babel-demarcate-block: split using element API |
Date: | Sun, 03 Mar 2024 15:45:32 +0000 |
On 03.03.2024 14:08, Ihor Radchenko wrote:
gerard.vermeulen@posteo.net writes:I have reduced my version of `org-babel-demarcate-block' to a minimal function to locate the bug stemming from edit-prep signaling an user-error or not. In case edit-prep signals an user-error the call chain `org-indent-block', `org-indent-region', `org-element-at-point' triggers an infinite list of warnings (major mode is Python when run on the test block).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.Your changes of last thursday helped me to narrow the problem down to this call.
Regards -- Gerard
[Prev in Thread] | Current Thread | [Next in Thread] |