Function: org-fold-core-set-folding-spec-property
org-fold-core-set-folding-spec-property is a byte-compiled function
defined in org-fold-core.el.gz.
Signature
(org-fold-core-set-folding-spec-property SPEC PROPERTY VALUE &optional FORCE)
Documentation
Set PROPERTY of a folding SPEC to VALUE.
Possible properties and values can be found in org-fold-core--specs docstring.
Do not check previous value when FORCE is non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-fold-core.el.gz
;;; API
;;;; Modifying folding specs
(defun org-fold-core-set-folding-spec-property (spec property value &optional force)
"Set PROPERTY of a folding SPEC to VALUE.
Possible properties and values can be found in `org-fold-core--specs' docstring.
Do not check previous value when FORCE is non-nil."
(pcase property
(:ellipsis
(unless (and (not force) (equal value (org-fold-core-get-folding-spec-property spec :ellipsis)))
(remove-from-invisibility-spec (cons spec (org-fold-core-get-folding-spec-property spec :ellipsis)))
(unless (org-fold-core-get-folding-spec-property spec :visible)
(add-to-invisibility-spec (cons spec value)))))
(:visible
(unless (or (memql 'merge-folds org-fold-core--optimise-for-huge-buffers)
(and (not force) (equal value (org-fold-core-get-folding-spec-property spec :visible))))
(if value
(remove-from-invisibility-spec (cons spec (org-fold-core-get-folding-spec-property spec :ellipsis)))
(add-to-invisibility-spec (cons spec (org-fold-core-get-folding-spec-property spec :ellipsis))))))
(:alias
;; Clear symbol cache.
(setq org-fold-core--spec-symbols nil))
(:isearch-open nil)
(:isearch-ignore nil)
(:front-sticky nil)
(:rear-sticky nil)
(_ nil))
(setf (cdr (assq property (assq spec org-fold-core--specs))) value))