From: Ihor Radchenko <yantar92@gmail.com>
To: tony aldon <tony.aldon.adm@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: [BUG] Re: when ellipsis are "removed", org-cycle doesn't work "correctly" on list
Date: Fri, 19 Nov 2021 21:42:56 +0800 [thread overview]
Message-ID: <87k0h49s7z.fsf@localhost> (raw)
In-Reply-To: <CACWitSDqGLb20knQKYt97gaj_xyn_+Di4kgFSUvN2_TzUXUw+A@mail.gmail.com>
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
next prev parent reply other threads:[~2021-11-19 13:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-11 14:24 when ellipsis are "removed", org-cycle doesn't work "correctly" on list tony aldon
2021-11-19 13:42 ` Ihor Radchenko [this message]
2022-10-04 7:28 ` [BUG] " Ihor Radchenko
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=87k0h49s7z.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tony.aldon.adm@gmail.com \
/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).