emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Fix for inlinetask visibility cycling causes infinite loop for "de


From: Anders Johansson
Subject: [BUG] Fix for inlinetask visibility cycling causes infinite loop for "degenerate" inlinetasks
Date: Thu, 18 Aug 2022 10:58:59 +0200

Hi,
I use "degenerate" inlinetasks (without an "*** END" line) quite a lot (for example for "coding" snippets in my orgqda package https://git.sr.ht/~andersjohansson/orgqda/).

Degenerate inlinetasks are stated as allowed in the documentation at the beginning of org-inlinetask.el, but are maybe not so common since org-inlinetask-insert-task always inserts the END-line.

Since April, an infinite loop is caused when cycling an entry containing degenerate inlinetasks by commit:
5f184b org-inlinetask.el: Fix visibility cycling for inlinetasks

Sample for reproducing:
-----
* Heading
*************** Degenerate inlinetask
-----

Cycling "Heading" will call org-inlinetask-hide-tasks where the last calls in the loop of `inlinetask-goto-end` takes us to the line below the inlinetask, but `backward-char` takes us back to the point at the end of the inlinetask, so `inlinetask-at-task-p` is still t and the loop continues infinitely in this fashion.

I don’t have a good suggestion for a solution that would still solve the problem addressed in that commit.

Best,
Anders Johansson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]