emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: BUG: org cycling regression when using the legacy folding style overlays
Date: Tue, 31 May 2022 07:46:21 +0800	[thread overview]
Message-ID: <87v8tmzir6.fsf@localhost> (raw)
In-Reply-To: <CAFyQvY3fV9OXBryKEUXDrCcASAZySwEB-hyAkL2tKKs7qtTOvA@mail.gmail.com>

Kaushal Modi <kaushal.modi@gmail.com> writes:

> I was trying to create a minimal reproducible example for a different
> issue and I ended up with this other issue that I didn't expect and so
> I am reporting that first.
>
> Issue: Opening an Org file gives (wrong-number-of-arguments #<subr
> looking-at> 2) error.

Do I understand correctly that your reproducer has nothing to do with
this error?

> 1. Clone https://gitlab.com/kaushalmodi/org-mode-mwe to a temp
> directory (say, in /tmp)
> 2. cd to the org repo and check out the main branch. The Org version
> used when creating this report was release_9.5.3-520-g4dda0d.
> 3. emacs -Q -L ./lisp/
> /tmp/org-mode-mwe/bug-recipes/collapse-all-post-subtrees/t.org &
> 4. Evaluate the "code__fold_style" src block in that test file; it
> sets the fold style to overlays
> 5. Evaluate the "code__collapse_all_posts" src block; this code hides
> all the subtrees with non-empty values for EXPORT_FILE_NAME or
> CUSTOM_ID properties.

Your code__collapse_all_posts block makes use of hide-subtree from
outline.el. Please, do not use it. outline.el is no longer considered
compatible with Org. It was not in the past, and even more so now. This
has been announced in ORG-NEWS.

Best,
Ihor


  reply	other threads:[~2022-05-30 23:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 23:04 BUG: org cycling regression when using the legacy folding style overlays Kaushal Modi
2022-05-30 23:46 ` Ihor Radchenko [this message]
2022-05-30 23:56   ` Kaushal Modi
2022-05-31  5:16     ` Ihor Radchenko
2022-05-31  3:07   ` Kaushal Modi
2022-05-31  3:20     ` 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=87v8tmzir6.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@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).