If org-element-and-children-at-point is invoked on an element after which the buffer has no more higher-level elements, it will get into an infinite loop because (point) will never be greater than end.
Should the comparison be (while (< (point) end) …)?
If
org-element-and-children-at-point
is invoked on an element after which the buffer has no more higher-level elements, it will get into an infinite loop because(point)
will never be greater thanend
.Should the comparison be
(while (< (point) end) …)
?