Hello, I discovered an org-mode file that results in an infinite
loop.

Emacs version 30.0.90
Org-Mode version: 9.7.11

This is how the file looks like:

--8<---------------cut here---------------start------------->8---
* something
:PROPERTIES:
:key:      value
:END:

some text.

:taskset:
- [ ] do something
*************** NEXT some inline task todo
:PROPERTIES:
:key: value
:END:
*************** END

:end:
--8<---------------cut here---------------end--------------->8---

The problem seems to be with the inline task having PROPERTIES.
Start emacs with -Q and eval this:

--8<---------------cut here---------------start------------->8---
(require 'org-inlinetask)
--8<---------------cut here---------------end--------------->8---

When adding a new property to the heading ‘something’ with ‘C-c
C-x p’, I am facing an infinite loop in org-buffer-property-keys.
There is already a comment about a similar(?) problem:

Comment:
--8<---------------cut here---------------start------------->8---
;; Make sure that found property block is not located
;; before current point, as it would generate an infloop.
;; It can happen, for example, in the following
;; situation:
;;
;; * Headline
;;   :PROPERTIES:
;;   ...
;;   :END:
;; *************** Inlinetask
;; #+BEGIN_EXAMPLE
;; :PROPERTIES:
;; #+END_EXAMPLE
--8<---------------cut here---------------end--------------->8---

Is this a known issue?  Can it be solved somehow or is it not
possible to use inlinetask with properties?

-- 
Christian Barthel

Reply via email to