Function: hypb:add-to-invisibility-spec
hypb:add-to-invisibility-spec is an autoloaded and byte-compiled
function defined in hypb.el.
Signature
(hypb:add-to-invisibility-spec ELEMENT)
Documentation
Add ELEMENT to buffer-invisibility-spec.
See documentation for buffer-invisibility-spec for the kind of elements
that can be added.
If buffer-invisibility-spec isn't a list before calling this
function, buffer-invisibility-spec will afterwards be a list
with the value (t ELEMENT). This means that if text exists
that invisibility values that aren't either t or ELEMENT, that
text will become visible.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************
;; Adapted from "subr.el" but doesn't add if ELEMENT already exists
;; Used in `kotl-mode', so autoload.
;;;###autoload
(defun hypb:add-to-invisibility-spec (element)
"Add ELEMENT to `buffer-invisibility-spec'.
See documentation for `buffer-invisibility-spec' for the kind of elements
that can be added.
If `buffer-invisibility-spec' isn't a list before calling this
function, `buffer-invisibility-spec' will afterwards be a list
with the value `(t ELEMENT)'. This means that if text exists
that invisibility values that aren't either t or ELEMENT, that
text will become visible."
(if (eq buffer-invisibility-spec t)
(setq buffer-invisibility-spec (list t)))
(unless (member element buffer-invisibility-spec)
(setq buffer-invisibility-spec
(cons element buffer-invisibility-spec))))