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 gAPcGMyVnV94HgAA0tVLHw (envelope-from ) for ; Sat, 31 Oct 2020 16:50:20 +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 2KS0FMyVnV/jXQAAB5/wlQ (envelope-from ) for ; Sat, 31 Oct 2020 16:50:20 +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 92AFE9402A5 for ; Sat, 31 Oct 2020 16:50:19 +0000 (UTC) Received: from localhost ([::1]:50782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYu54-0005c9-Im for larch@yhetil.org; Sat, 31 Oct 2020 12:50:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYu4h-0005bg-E6 for emacs-orgmode@gnu.org; Sat, 31 Oct 2020 12:49:55 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:62962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYu4f-0000KB-1h for emacs-orgmode@gnu.org; Sat, 31 Oct 2020 12:49:55 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id D779D8EC81; Sat, 31 Oct 2020 12:49:49 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=U6j6U/k3TCYlPrS2bd++/H/uwW0=; b=KVfLmk 57o1owG6dCMfigNbLZ8OpMXkpGSS6nePju+1WpDbr0wuOaHZcEgddeqw5/MarrCJ WX+IawMKkExyc1bjMrMp4KXhUAJoH81e8+03Et37e7x6zfVKaaJXCrsBRumUXzJO zLgTKj0apXYs3I8l0zEHlppF1KUkUJuzi5MqA= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id CE7A38EC80; Sat, 31 Oct 2020 12:49:49 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=g0Xqrd1WLCUtJtCr2EF9NRmGDfk6p9ZnCR7xAFyZq0k=; b=s4u5HrY7A0Bl/L+bnzClbyNjOUu5SYpcRmSn/Vo3KPSHC6NYAAtSiTGByMXWHR5Y8bnCsmwrFv3W+txlFqvk8fQ0APV9262FBRwfbHjpjE+XeTJkZAqRqQ95AaTEX4N3ijG/20OIEENjcwg/oEumAmk2vtx2TyFdAm/i+aCllW0= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 325F78EC7F; Sat, 31 Oct 2020 12:49:49 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Daniele Nicolodi Subject: Re: Bug: headline folding broken by whitespace In-Reply-To: <9ab68310-7aeb-7a6a-0a73-07c292dd23d7@grinta.net> References: <9ab68310-7aeb-7a6a-0a73-07c292dd23d7@grinta.net> Date: Sat, 31 Oct 2020 12:49:48 -0400 Message-ID: <874kma8hn7.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 16D95D0C-1B99-11EB-9932-D152C8D8090B-24757444!pb-smtp1.pobox.com Received-SPF: pass client-ip=64.147.108.70; envelope-from=kyle@kyleam.com; helo=pb-smtp1.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/31 12:49:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: , Cc: Org Mode List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=KVfLmk 5; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=s4u5HrY7; 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: -1.21 X-TUID: JceyaUGD2e1K Daniele Nicolodi writes: > Hello, > > i saw a few reports of bugs related to folding and unfolding of > headlines recently, but I think this is not a duplicate. I think you're referring to https://orgmode.org/list/87h7qu10ht.fsf@eml.cc https://orgmode.org/list/CAJj=8EFJXFu9ZQ11cO24AAu=1jykW2Zr+=R4FLuKG=bLjfUe+g@mail.gmail.com The cases reported there are resolved by e8070d71a (Revert "org.el: Allow empty subtrees to be folded back", 2020-10-26). > I just noticed that with the latest release (Org mode version 9.4 > (9.4-27-g47bf60-elpa @ /Users/daniele/.emacs.d/elpa/org-20201026/) > unfolding of headlines is broken by whitespace. In particular with a > buffer with this content: > > * Foo > ** Bar > bar bar bar+49 1520 7178926 > > > * Baz > > where the line before "* Baz" contains a single whitespace character, > the headline "* Foo" can be folded but cannot be unfolded. Removing the > whitespace while the headline is folded fixes the problem. Yep, with your test case (making sure to add a space on the line before Baz), I can trigger the issue on your reported version (47bf6005b), and it goes away with e8070d71a. So, it looks like the same underlying problem and should go away with the next elpa bump.