[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question about overlays and performance.
From: |
Ihor Radchenko |
Subject: |
Re: A question about overlays and performance. |
Date: |
Mon, 27 Jul 2020 19:20:30 +0800 |
> The recommending way to avoid this problem is to provide a patch which
> extends Isearch's handling of invisible text to text-properties.
> There's no reason to presume it would be hard to do.
See the attached.
> And the way I recommend to avoid this problem is to stay clear of
> indirect buffers (which I consider as an attractive nuisance).
It is not always possible. I am currently working on re-implementing
org-mode folding from using overlays to text-properties. However, it is
not possible to stay clear of indirect buffers in org-mode. Many
user packages and core code depend on indirect buffer functionality
(including different folding state). I will have to go ahead using my
"hacky" solution with char-property-alias-alist.
Best,
Ihor
iseach-text-properties.patch
Description: Text Data
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> - text hidden via text properties is not well-handled by isearch. For
>> overlays, isearch can temporary reveal the hidden text, which is not
>> the case for text hidden using 'invisible text property.
>
> The recommending way to avoid this problem is to provide a patch which
> extends Isearch's handling of invisible text to text-properties.
> There's no reason to presume it would be hard to do.
>
>> - text properties are not buffer-local in indirect buffers. With
>> overlays, it is possible to have define hidden text in basic and
>> indirect buffer independently. However, text properties will always be
>> shared and the text hidden in indirect buffer will automatically be
>> hidden in the base buffer as well.
>
> And the way I recommend to avoid this problem is to stay clear of
> indirect buffers (which I consider as an attractive nuisance).
>
>
> Stefan
>
--
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong
University, Xi'an, China
Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg
- A question about overlays and performance., Jeff Norden, 2020/07/25
- Re: A question about overlays and performance., Eli Zaretskii, 2020/07/25
- Re: A question about overlays and performance., Jeff Norden, 2020/07/25
- Re: A question about overlays and performance., Ihor Radchenko, 2020/07/25
- Re: A question about overlays and performance., Stefan Monnier, 2020/07/26
- Re: A question about overlays and performance.,
Ihor Radchenko <=
- Re: A question about overlays and performance., Jeff Norden, 2020/07/28
- Re: A question about overlays and performance., Yuan Fu, 2020/07/28
- Re: A question about overlays and performance., Eric Abrahamsen, 2020/07/28
- Re: A question about overlays and performance., Ihor Radchenko, 2020/07/28
- Re: A question about overlays and performance., Jeff Norden, 2020/07/30
- Re: A question about overlays and performance., Juri Linkov, 2020/07/28
- Re: A question about overlays and performance., Ihor Radchenko, 2020/07/28
- Re: A question about overlays and performance., Juri Linkov, 2020/07/30