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
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):
>
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)
#+BE
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 '