emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Kim <emacs18@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: headline folding broken by whitespace
Date: Mon, 02 Nov 2020 00:25:36 -0800	[thread overview]
Message-ID: <m2r1pcmagv.fsf@gmail.com> (raw)
In-Reply-To: 87pn4y6qxm.fsf@kyleam.com

Kyle Meyer <kyle@kyleam.com> 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.



      reply	other threads:[~2020-11-02  8:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-31 15:06 Bug: headline folding broken by whitespace Daniele Nicolodi
2020-10-31 16:28 ` Russell Adams
2020-10-31 16:44   ` Daniele Nicolodi
2020-10-31 16:53   ` Kyle Meyer
2020-10-31 16:49 ` Kyle Meyer
2020-10-31 16:59   ` Daniele Nicolodi
2020-10-31 17:58     ` Kyle Meyer
2020-10-31 20:43       ` Russell Adams
2020-10-31 21:12         ` Kyle Meyer
2020-11-02  8:25           ` Richard Kim [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2r1pcmagv.fsf@gmail.com \
    --to=emacs18@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).