[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] Re: when ellipsis are "removed", org-cycle doesn't work "correctly
From: |
Ihor Radchenko |
Subject: |
[BUG] Re: when ellipsis are "removed", org-cycle doesn't work "correctly" on list |
Date: |
Fri, 19 Nov 2021 21:42:56 +0800 |
tony aldon <tony.aldon.adm@gmail.com> writes:
> This is my first communication on this mailing list and I hope I'll do
> it well.
Thanks for reporting and welcome to the mailing list!
> 1) The "bug" (I'm not sure if it is a bug):
>
> When you modify the `buffer-invisibility-spec` replacing
> `'(outline . t)` by `'outline` (in order to remove the `...` when
> headlines, list, etc are collapsed) by evaluating the following form:
>
> (remove-from-invisibility-spec '(outline . t))
> (add-to-invisibility-spec 'outline)
>
> `org-cycle` stopped working "correctly" on lists.
Confirmed
Steps to reproduce:
1. emacs -Q
2. M-x org-mode
3. Insert
- something
- a
- b
- c
- something else
4. M-: (remove-from-invisibility-spec '(outline . t)) <RET>
5. M-: (add-to-invisibility-spec '(outline)) <RET>
6. Move point to "something"
7. <TAB> <TAB> the item is folded but not unfolded
The bug is triggered by incorrect result of org-list-struct.
In org-list-struct with the above invisibility settings,
current-indentation incorrectly returns 0 on "a", "b", and "c" items. I
suspect Emacs bug.
Best,
Ihor