Re: Cannot set invisible text property

2022-01-12 Thread Enrico Flor
Ihor Radchenko writes: > This is because Org makes use of invisible text property during > fontification. You should either apply invisibility in Org through > font-lock, or do it temporarily until next re-fontification via > (with-silent-modifications (add-text-properties 1 3 '(invisible t))) T

Cannot set invisible text property

2022-01-06 Thread Enrico Flor
In a minor mode I wrote for myself, I use add-text-properties to make certain things invisible. This does not work in org-mode, and I don't understand why. For instance, the following has no effect in when the buffer is in org-mode (and only when it's in org mode): (add-text-properties 1 3 '