emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about overlays and performance.


From: Juri Linkov
Subject: Re: A question about overlays and performance.
Date: Wed, 29 Jul 2020 02:53:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> I am currently working on re-implementing org-mode folding from using
> overlays to text-properties.

Any chance to fix also bug#40808? It's still open because there is
no solution for isearching invisible text in org-mode.

Here's a short test case that demonstrates the problem in org-mode:

0. emacs -Q
1. visit emacs/etc/ORG-NEWS
2. isearch for "http": C-s http C-s C-s C-s ...

it eventually stops at org links where "http" is invisible, such as

  [[https://orgmode.org/worg/library-of-babel.html][here]]

The problem is that org-mode puts the text property 'invisible'
only when the link is scrolled into view, I guess it puts the property
using font-lock.

So it seems org-mode needs to use font-lock-ensure on the line
with the next search hit before calling isearch-filter-predicate
on the found occurence.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]