Re: [BUG] org-fold-core--fix-folded-region slows down typing [9.6.6 (release_9.6.6 @ /home/viz/lib/ports/emacs/lisp/org/)]

2023-06-10 Thread Ihor Radchenko
Visuwesh  writes:

>> You can try to set `org-fold-core-style' to overlays. Or you can try to
>> disable flyspell. Or you can try to disable org-num that adds up to text
>> properties.
>
> What kind of disasters will I invite if I permanently set
> `org-fold-core--ignore-modifications' to t?

1. Auto-unfolding will be broken
2. Some text inserted in the middle of folded regions may remain visible.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-fold-core--fix-folded-region slows down typing [9.6.6 (release_9.6.6 @ /home/viz/lib/ports/emacs/lisp/org/)]

2023-06-09 Thread Visuwesh
[வெள்ளி ஜூன் 09, 2023] Ihor Radchenko wrote:

> Visuwesh  writes:
>
>> In a largeish buffer, org-fold-core--fix-folded-region significantly
>> slows down typing to a point where I have to wait a few milliseconds to
>> see the characters typed.  With emacs -Q, the slow down isn't as bad as
>> with my full configuration but it is still noticeable.  Setting
>> `org-fold-core--ignore-modifications' to t makes the lag go away.
>
> Well. This can happen when you have a huge number of text properties in
> your buffer. It is caused by details of how Emacs stores and searches
> text properties.
>
> You can try to set `org-fold-core-style' to overlays. Or you can try to
> disable flyspell. Or you can try to disable org-num that adds up to text
> properties.

What kind of disasters will I invite if I permanently set
`org-fold-core--ignore-modifications' to t?

> Canceled.
> Not much can be done on Org side.



Re: [BUG] org-fold-core--fix-folded-region slows down typing [9.6.6 (release_9.6.6 @ /home/viz/lib/ports/emacs/lisp/org/)]

2023-06-09 Thread Ihor Radchenko
Visuwesh  writes:

> In a largeish buffer, org-fold-core--fix-folded-region significantly
> slows down typing to a point where I have to wait a few milliseconds to
> see the characters typed.  With emacs -Q, the slow down isn't as bad as
> with my full configuration but it is still noticeable.  Setting
> `org-fold-core--ignore-modifications' to t makes the lag go away.

Well. This can happen when you have a huge number of text properties in
your buffer. It is caused by details of how Emacs stores and searches
text properties.

You can try to set `org-fold-core-style' to overlays. Or you can try to
disable flyspell. Or you can try to disable org-num that adds up to text
properties.

Canceled.
Not much can be done on Org side.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at