From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id B7+WLfVxhl/lZQAA0tVLHw (envelope-from ) for ; Wed, 14 Oct 2020 03:35:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0BXYKPVxhl+udwAAB5/wlQ (envelope-from ) for ; Wed, 14 Oct 2020 03:35:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6DA26940712 for ; Wed, 14 Oct 2020 03:35:16 +0000 (UTC) Received: from localhost ([::1]:44182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSXZJ-00004y-UR for larch@yhetil.org; Tue, 13 Oct 2020 23:35:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSXYt-0008WL-OS for emacs-orgmode@gnu.org; Tue, 13 Oct 2020 23:34:47 -0400 Received: from agree-15.godzone.net.nz ([192.138.251.15]:41962 helo=smtp.godzone.net.nz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSXYq-00063f-Dh for emacs-orgmode@gnu.org; Tue, 13 Oct 2020 23:34:47 -0400 Received: from [192.168.20.16] (121-79-254-122.sta.inspire.net.nz [121.79.254.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.godzone.net.nz (Postfix) with ESMTPSA id BF08A576A8 for ; Wed, 14 Oct 2020 16:33:26 +1300 (NZDT) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.godzone.net.nz BF08A576A8 Authentication-Results: smtp.godzone.net.nz; spf=fail smtp.mailfrom=Giovanni@reflections.co.nz To: emacs-orgmode@gnu.org From: Giovanni Moretti Subject: Heading won't unfold on TAB if last line has just spaces, with empty line preceding. Message-ID: 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 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------2C41E60350DD62E101256409" Content-Language: en-US Received-SPF: pass client-ip=192.138.251.15; envelope-from=srs0=ve2x=dv=reflections.co.nz=giovanni@godzone.net.nz; helo=smtp.godzone.net.nz X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/13 23:33:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.49 X-TUID: YyJ16hn0u57s This is a multi-part message in MIME format. --------------2C41E60350DD62E101256409 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: * Block 1 - you can delete X to leave two empty lines and TAB on "Block 1" (or 1a) cycles as expected - GOOD! But if the last line isn't empty but has spaces: * Block 2 - deleting X (leaving empty line) and then Z to leave the last line with just a space (one or more) and heading will fold on TAB /but won't unfold/. Shift-Tab is needed. * Block 3 - the same symptoms as Block 2 but has a subtree to show "Folded/Children/Subtree" when Tab-cycling on level one heading. 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 --------------2C41E60350DD62E101256409 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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:

  • Block 1 - you can delete X to leave two empty lines and TAB on "Block 1" (or 1a) cycles as expected - GOOD!

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

  • Block 2 - deleting X (leaving empty line) and then Z to leave the last line with just a space (one or more) and heading will fold on TAB but won't unfold. Shift-Tab is needed.
  • Block 3 - the same symptoms as Block 2 but has a subtree to show "Folded/Children/Subtree" when Tab-cycling on level one heading.

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



--------------2C41E60350DD62E101256409--