unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Visuwesh <visuweshm@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	 Daniel Mendler <mail@daniel-mendler.de>,
	 emacs-devel@gnu.org, Ihor Radchenko <yantar92@posteo.net>
Subject: Re: [elpa] externals/org-modern 0043e584db: Use `display ""` for hiding instead of `invisible t`
Date: Thu, 01 Dec 2022 08:30:28 +0100	[thread overview]
Message-ID: <87sfhzoa23.fsf@gmail.com> (raw)
In-Reply-To: <87359zamcg.fsf@gmail.com> (Visuwesh's message of "Thu, 01 Dec 2022 07:58:47 +0530")

Visuwesh <visuweshm@gmail.com> writes:

> [புதன் நவம்பர் 30, 2022] Stefan Monnier wrote:
>
>>>     Unfortunately it seems that the invisible text property has been taken by
>>>     org-fold-core.
>>
>> What do you mean by that?
>
> In the latest release of Org, the outlines no longer use overlays to
> fold but text-properties.  All the assorted stuff was put in a general
> purpose library called "org-fold".

Relevant bit from ORG-NEWS:

> *** Users experiencing performance issues can use new folding backend
> 
> The old folding backend used in Org is poorly scalable when the file
> size increases beyond few Mbs.  The symptoms usually include slow
> cursor motion, especially in long-running Emacs sessions.
> 
> A new optimized folding backend is now available, and enabled by
> default.  To disable it, put the following to the Emacs config *before*
> loading Org:
> 
> #+begin_src emacs-lisp
> (setq org-fold-core-style 'overlays)
> #+end_src
> 
> Even more performance optimization can be enabled by customizing
> =org-fold-core--optimise-for-huge-buffers=.  However, this option may
> be dangerous.  Please, read the variable docstring carefully to
> understand the possible consequences.
> 
> When =org-fold-core-style= is set to =text-properties=, several new
> features will become available and several notable changes will happen
> to the Org behavior.  The new features and changes are listed below.
>
> [ subsections elided for brevity ]
> **** Hidden parts of the links can now be searched and revealed during isearch
> **** =org-catch-invisible-edits= now works for hidden parts of the links and for emphasis markers
> **** Breaking structure of folded elements automatically reveals the folded text
> **** Folding state of the drawers is now preserved when cycling headline visibility
> **** =outline-*= functions may no longer work correctly in Org mode

My understanding (based only on skimming mailing lists, haven't tried
Org 9.6 yet):

* org-fold-core-style is 'text-properties by default,

* ISTR a bug-gnu-emacs thread where overlay performance was improved, so
  I wondered if Org 9.6 might revert to overlays by default and make the
  new backend opt-in,

* then again ORG-NEWS advertises "new features" with the new backend, so
  it's not just a matter of performance I guess?

Paging Ihor in, to dispel any misunderstanding of mine.



  reply	other threads:[~2022-12-01  7:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166983107217.27025.10929395413721986131@vcs2.savannah.gnu.org>
     [not found] ` <20221130175752.70424C00B0F@vcs2.savannah.gnu.org>
2022-11-30 19:55   ` [elpa] externals/org-modern 0043e584db: Use `display ""` for hiding instead of `invisible t` Stefan Monnier
2022-12-01  2:28     ` Visuwesh
2022-12-01  7:30       ` Kévin Le Gouguec [this message]
2022-12-05 11:35         ` 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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87sfhzoa23.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mail@daniel-mendler.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=visuweshm@gmail.com \
    --cc=yantar92@posteo.net \
    /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.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).