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)))

Re: Cannot set invisible text property

2022-01-12 Thread Ihor Radchenko
Enrico Flor writes: > 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):

Re: Cannot set invisible text property

2022-01-07 Thread John Kitchin
Maybe try this instead (you added the symbol as a list, not just a symbol): 123 #+BEGIN_SRC emacs-lisp (add-text-properties 1 3 '(invisible hide-this-stuff)) (add-to-invisibility-spec 'hide-this-stuff) #+END_SRC #+RESULTS: : (hide-this-stuff (org-hide-block . t) (org-link) (outline . 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