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 eCsmLM7Cn1/jNgAA0tVLHw (envelope-from ) for ; Mon, 02 Nov 2020 08:26:54 +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 2BnrJ87Cn184HQAAB5/wlQ (envelope-from ) for ; Mon, 02 Nov 2020 08:26:54 +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 25A72940222 for ; Mon, 2 Nov 2020 08:26:54 +0000 (UTC) Received: from localhost ([::1]:53524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZVAy-0003BW-KV for larch@yhetil.org; Mon, 02 Nov 2020 03:26:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZVA1-0003BP-EF for emacs-orgmode@gnu.org; Mon, 02 Nov 2020 03:25:53 -0500 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:45112 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZVA0-0000r6-48 for emacs-orgmode@gnu.org; Mon, 02 Nov 2020 03:25:53 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kZV9v-00075b-8V for emacs-orgmode@gnu.org; Mon, 02 Nov 2020 09:25:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Richard Kim Subject: Re: Bug: headline folding broken by whitespace Date: Mon, 02 Nov 2020 00:25:36 -0800 Message-ID: References: <9ab68310-7aeb-7a6a-0a73-07c292dd23d7@grinta.net> <874kma8hn7.fsf@kyleam.com> <87sg9u6zwe.fsf@kyleam.com> <20201031204359.GG28730@maokai> <87pn4y6qxm.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cancel-Lock: sha1:GSluIK+doudQi9taWcm8P/disOk= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 03:25:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: emacs18@gmail.com 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=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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.41 X-TUID: yLVNrsWb/1fD Kyle Meyer writes: > Russell Adams writes: > >> On Sat, Oct 31, 2020 at 01:58:25PM -0400, Kyle Meyer wrote: >>> As I mentioned elsewhere in the thread, my guess is that Russell was >>> using your example as is, rather than adding the space on the line >>> (where X is below). >> >> No. I added a space, and even used highlight-regexp to confirm all >> spaces. >> >> It did not occur for me. > > Well, then I'm out of guesses. > > In any case, for those who can trigger the issue (using the example from > this thread as well as the examples from the related threads) on > ee3c3b554 up through 47bf6005b (as I can, with a vanilla Emacs 27.1), > e8070d71a should resolve it. I cannot trigger the problem on emacs 27.1 when it was launched with -q. However I can trigger the issue on emacs 27.1 when spacemacs is used. This is using latest org-mode package which I built from latest git files. The problem seems to be due in part to org-cycle-show-empty-lines which is one of the functions in org-cycle-hook. I say this based on two the observations that the problem goes away if either of these two things are done: 1. Remove org-cycle-show-empty-lines from org-cycle-hook. 2. Set org-cycle-separator-lines (whose default value is 2) to some large value, e.g., 5. As far as I can tell the values of org-cycle-hook and org-cycle-separator-lines are the same whether spacemacs is used or not. Yet the problem is seen only on spacemacs. So it appears that some other feature is used within spacemacs which interferes with org-cycle-show-empty-lines. I have not been able to figure this out, because there are just too many org related features enabled or customized within spacemacs.