emacs-orgmode
[Top][All Lists]
Advanced

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

Heading won't unfold on TAB if last line has just spaces, with empty lin


From: Giovanni Moretti
Subject: Heading won't unfold on TAB if last line has just spaces, with empty line preceding.
Date: Wed, 14 Oct 2020 16:33:23 +1300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

There's something weird with headings that can cause unfolding to fail. Headings can be folded with TAB refuse to unfold - they need Shift-TAB to see the contents. This is scary as it looks like content has been accidentally deleted whereas it's really just hidden.

The TAB-cycling worked as expected in Org 9.1.9 for the following example but fails in 9.4.

The example below illustrates the difficulties:

But if the last line isn't empty but has spaces:

Cheers
Giovanni

===================

* Block 1 - OK
Block 1 text

** Block 1a heading
Block 1a content
X
X
* BAD BLOCK 2 - Delete X & Z, then TAB WON'T UNFOLD
Block 2 content
X
 Z
* BAD BLOCK 3 - TAB WON'T UNFOLD
  Block 2 content

** BAD BLOCK 3a
   Block 3a content
X
 Z
* Block 4 - OK
The end




reply via email to

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